libstdc++.so.* linker option
Balaraman S (Bala)
sbalaram@mil.emc.com
Fri Oct 26 18:13:00 GMT 2001
Hi
I made a simple program linking with -lstdc++ using "gcc version
egcs-2.90.29 980515 (egcs-1.0.3 release)" on Redhat Linux 5.2. When I
see linked library using 'ldd' I see the library name is hard coded to
libstdc++.so.2.8.
# ldd a.out
libstdc++.so.2.8 => /usr/lib/libstdc++.so.2.8 (0x40005000)
libm.so.6 => /lib/libm.so.6 (0x40046000)
libc.so.6 => /lib/libc.so.6 (0x4005f000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00000000)
#
Why it is? Can not we link version independent libstdc++?
I want to run the same program on Redhat Linux 7.0 where only the new
version libstdc++.so.2.9 exist, libstdc++.so.2.8 does not exist.
Thanks
Bala
More information about the Libstdc++
mailing list