[CMake] Can't find libstdc++ on RHEL Linux 5...

Dick Munroe munroe at csworks.com
Thu Oct 23 20:13:27 EDT 2008


I have the following in my CMakeLists.txt file:

		   	FIND_LIBRARY(
				APPLE_LIBC
				NAMES c
		   	)
message("${APPLE_LIBC}")
		  	FIND_LIBRARY(
				APPLE_STDC++
				NAMES stdc++
		   	)
message("${APPLE_STDC++}")

When this runs I get the following:

/usr/lib/libc.so
APPLE_STDC++-NOTFOUND

and when I do a ls in /usr/lib I see:

[munroe at redhat ESPlanner Executables-cmake]$ ls /usr/lib/libstd*
/usr/lib/libstdc++.so.5      /usr/lib/libstdc++.so.6
/usr/lib/libstdc++.so.5.0.7  /usr/lib/libstdc++.so.6.0.8

So why isn't cmake finding libstdc++ but IS finding libc.so (unless
cmake can't deal with the versioning).

And how do I get this to work consistently.  Do I need to manually create
a symbolic link of the form:

/usr/lib/libstdc++.so

???

Best,

Dick Munroe

-- 
Dick Munroe			(E) mailto:munroe at csworks.com
Cottage Software Works, Inc.	(O) 617 901 9052
PMB 361				(F) 617 489 0328
464 Common St.			(W) http://www.csworks.com/
Belmont, Ma. 02478




More information about the CMake mailing list