This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

libstdc++.so.* linker option


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]