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 13:16:38 +0200
- Subject: Re: G++ 3.3 and ld Error
- Organization: EADS Deutschland GmbH
- References: <3ECA40FB.47E4D01F@sysde.eads.net>
Dara, Tom,
I have a RedHat 7.1 based system with binutils-2.13.90.
My gcc-3.3 (built from sources) is installed in the path /opt/gcc3.
The following has solved the linking problem for me:
$ su
$ cd /lib
$ ln -sf /opt/gcc3/lib/libgcc_s.so libgcc_s.so.1
Thus it would seem that somewhere, gcc is picking up the libgcc.so
from a wrong path.
On Sat, 17 May 2003 12:30:36 -0700, Dara Hazeghi wrote:
>
> it looks like some part of the unwind library is not being found in the linking process. Can you add
> the "-v" option, rerun the command and post the output? Note that somewhere, you need to be linking
> to libsupc++ .
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
HTH
Oliver