1 msgSortir, se distraire, se cultiver autour du Leman
1 msgWhich gcc tar file to be used for SGI Altix 350?

can I force linking to older libstdc++?
\ sew2111 (29 Jun 2006)

1 msggcc linker error
6 msgSymbols which were not used, still in binary
5 msgmmx/sse builtins
2 msgdiscard a weak symbol in object file
5 msgerror occured when cross compiling gcc
6 msgGcc 3.4.6 Build error
5 msgAddress of label which is defined within an asm...
3 msgTemplate parameters problem
2 msg-mcpu=v9 -mvis error on Solaris 8/SPARC with gc...
4 msgcurrent subversion (rev 115032) compiling issues
3 msgquestion about gcc assembly
3 msgQn regarding building an application of smalles...
4 msgSTL, hash_map is sorted !!
3 msgProblem with private copy constructor
2 msgc-parser.y
12 msg'Free as in Freedom'
3 msgHow can I remove articles posted under my name?
Subject:can I force linking to older libstdc++?
Group:Gcc-help
From:sew2111
Date:29 Jun 2006


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

Problem:
-libxxx.1.2.so 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 libstdc++.so).

Dump:

try #1:

g++ -o main /home/jstokes/dco//libxxx.1.2.so main.o
warning: libstdc++.so.5, needed by /home/jstokes/dco//libxxx.1.2.so,
may conflict with libstdc++.so.6

ldd main
libxxx.1.2.so => not found
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x04a71000)
libm.so.6 => /lib/tls/libm.so.6 (0x00aa3000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0080a000)
libc.so.6 => /lib/tls/libc.so.6 (0x00977000)
/lib/ld-linux.so.2 (0x0095e000)

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

try #2:
g++ -o main /home/jstokes/dco//libxxx.1.2.so /usr/lib/libstdc++.so.5
main.o

ldd main
/home/jstokes/dco//libxxx.1.2.so (0x00164000) libstdc++.so.5 =>
/usr/lib/libstdc++.so.5 (0x00176000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x04a71000)
libm.so.6 => /lib/tls/libm.so.6 (0x00aa3000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0080a000)
libc.so.6 => /lib/tls/libc.so.6 (0x00977000)
/lib/ld-linux.so.2 (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 libstdc++.so.5?


© 2004-2008 readlist.com