[Q]By default standard C++ lib is statically linked?
Firstworld
hhk7dsl@firstworld.net
Thu Jun 14 11:01:00 GMT 2001
Hi
I doubt my system has shared libc++ lib. Because, under /usr/local/lib, as
for gnu c++ lib-related file, libstdc++.a.2.10.0 only exists.
And g++ -v displays:
"Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/specs
gcc version 2.95.2 19991024 (release)"
Anyway,
I compiled my simple program with g++(without special flag) in release mode.
Its size is relatively huge and following ldd result doesn't show standard
C++library file:
libpthread.so.1 => /usr/lib/libpthread.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libsocket.so.1 => /usr/lib/libsocket.so.1
librt.so.1 => /usr/lib/librt.so.1
libm.so.1 => /usr/lib/libm.so.1
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libmp.so.2 => /usr/lib/libmp.so.2
libaio.so.1 => /usr/lib/libaio.so.1
libthread.so.1 => /usr/lib/libthread.so.1
Dose this sympton mean the standard C++library is statically linked?
--
Paul
More information about the Libstdc++
mailing list