can I force linking to older libstdc++?
Thu Jun 29 18:00:00 GMT 2006

Brief Description:
-I am trying to use a shared library ( which was
compiled on a different machine, with an older version of g++ (no
-main.cpp/main.o is my test code to use this library.

Problem: seems to need an older version of libstdc++, whereas
the compiler i'm using now will not allow my code to revert to this
older libstdc++ (I have the old


try #1:

g++ -o main /home/jstokes/dco// main.o
warning:, needed by /home/jstokes/dco//,
may conflict with

ldd main => not found => /usr/lib/ (0x04a71000) => /lib/tls/ (0x00aa3000) => /lib/ (0x0080a000) => /lib/tls/ (0x00977000)
/lib/ (0x0095e000)

notice that libxxx is not found...weird..but the important thing is
the warning given

try #2:
g++ -o main /home/jstokes/dco// /usr/lib/

ldd main
/home/jstokes/dco// (0x00164000) =>
/usr/lib/ (0x00176000) => /usr/lib/ (0x04a71000) => /lib/tls/ (0x00aa3000) => /lib/ (0x0080a000) => /lib/tls/ (0x00977000)
/lib/ (0x0095e000)

now it can find libxxx properly, and i don't get the warning..but i
don't want it using to different versions of libstdc++ at the same
time!! How do i get these two programs to just use

More information about the Gcc-help mailing list