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: "Tom Browder" <tom3 at fwb dot asi dot srs dot com>
- To: "'Dara Hazeghi'" <dhazeghi at yahoo dot com>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Mon, 19 May 2003 08:31:09 -0500
- Subject: RE: G++ 3.3 and ld Error
-----Original Message-----
From: Dara Hazeghi [mailto:dhazeghi@yahoo.com]
>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++ .
Thanks for reply, Dara, output with -v follows:
g++-3.3 -v -o prog -rdynamic String.o StringList.o User.o \
Wl,-Bstatic -lexpat -lrt -lc -ltcl -lstdc++ -Wl,-Bdynamic \
-lm -lgdbm -lpthread -ldl \
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/specs
Configured with: ../gcc-3.3/configure --enable-languages=c,c++,f77
--program-suffix=-3.3
Thread model: posix
gcc version 3.3
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/collect2 --eh-frame-hdr -m
elf_i386 -export-dynamic -dynamic-linker /lib/ld-linux.so.2 -o prog
/usr/lib/crt1.o /usr/lib/crti.o
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/crtbegin.o -L/usr/lib
-L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3
-L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/../../.. String.o
StringList.o User.o
-Bstatic -lexpat -lgdbm -lrt -ltcl -lstdc++ -Bdynamic -lgdbm -lpthread -ldl
-lstdc++ -lm -lc -lgcc_s -lgcc -lc -lgcc_s -lgcc
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/crtend.o /usr/lib/crtn.o
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/../../../libstdc++.a(eh_throw.o
): In function `__cxa_rethrow':
/usr/local/src/gcc_obj/i686-pc-linux-gnu/libstdc++-v3/libsupc++/../../../../
gcc-3.3/libstdc++-v3/libsupc++/eh_throw.cc:49: undefined reference to
`_Unwind_Resume_or_Rethrow'
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/../../../libstdc++.so:
undefined reference to `_Unwind_Resume_or_Rethrow@GCC_3.3'
collect2: ld returned 1 exit status
make: *** [brltool] Error 1
make: Target `all' not remade because of errors.
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for i686-pc-linux-gnu
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Thanks for your help.
Tom Browder
SRS Technologies, Inc.
838 N. Eglin Parkway, Suite 202
Fort Walton Beach, FL 32547
Tel: 850-862-4188
Fax: 850-862-8055