This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
libstdc++.so.* linker option
- To: libstdc++ at sources dot redhat dot com
- Subject: libstdc++.so.* linker option
- From: "Balaraman S (Bala)" <sbalaram at mil dot emc dot com>
- Date: Fri, 26 Oct 2001 21:10:33 -0400
- Reply-To: sbalaram at mil dot emc dot com
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