This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: G++ 3.3 and ld Error
- From: Oliver Kellogg <oliver dot kellogg at sysde dot eads dot net>
- To: gcc-help at gcc dot gnu dot org
- Cc: tom3 at fwb dot asi dot srs dot com, dhazeghi at yahoo dot com, heiko dot schroeder at sysde dot eads dot net
- Date: Tue, 10 Jun 2003 15:09:27 +0200
- Subject: Re: G++ 3.3 and ld Error
- Organization: EADS Deutschland GmbH
- References: <3ECA40FB.47E4D01F@sysde.eads.net> <3EE5BE16.52FFAEB4@sysde.eads.net>
Hi again,
Just to wrap it up:
My colleague Heiko Schroeder discovered the culprit,
it's the -L/usr/lib that appears too early in our linker
invocation.
--Oliver
Oliver Kellogg wrote:
>
> Here is my linker output from a "g++ -v":
>
> /opt/gcc3/lib/gcc-lib/i686-pc-linux-gnu/3.3/collect2 --eh-frame-hdr -m
> elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o tracc /usr/lib/crt1.o
> /usr/lib/crti.o /opt/gcc3/lib/gcc-lib/i686-pc-linux-gnu/3.3/crtbegin.o
> -L/e/ace-cvs/ACE_wrappers/ace -L./ -L/e/ace-cvs/ACE_wrappers/TAO/tao
> -L../../DaTransport/dalli/cpp -L../../DaTransport/multi_ec
> -L../../DaTransport/netman -L../../DaTransport/common
> -L../../Utility/cpp -L/usr/lib
> -L/opt/gcc3/lib/gcc-lib/i686-pc-linux-gnu/3.3
> -L/opt/gcc3/lib/gcc-lib/i686-pc-linux-gnu/3.3/../../.. /tmp/cc9gwd01.o
> typeregistrationI.o typeregistration_intI.o typeregistration_intS.o
> typeregistration_intC.o clonecacheI.o clonecacheS.o typetree.o
> cloneset_impl.o clonedata.o clonerbtree.o clonebdbtree.o ptds.o
> checkdir.o clonecachetestS.o clonecachetestI.o RACE_Thread.o libcache.a
> -ldb_cxx -ldalli -lTAO_Strategies -lTAO_RTEvent -lTAO_CosEvent
> -lTAO_Svc_Utils -lTAO_IORTable -lTAO_Messaging -lTAO_Strategies
> -lTAO_PortableServer -lTAO_IORInterceptor -lTAO_ObjRefTemplate
> -lTAO_Valuetype -lTAO -lACE -ldl -lpthread -lrt -lstdc++ -lm -lgcc_s
> -lgcc -lc -lgcc_s -lgcc
> /opt/gcc3/lib/gcc-lib/i686-pc-linux-gnu/3.3/crtend.o /usr/lib/crtn.o
>