G++ 3.3 and ld Error
Oliver Kellogg
oliver.kellogg@sysde.eads.net
Tue Jun 10 13:09:00 GMT 2003
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
>
More information about the Gcc-help
mailing list