This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
problem with my gcc install or with ld?
- To: egcs at egcs dot cygnus dot com
- Subject: problem with my gcc install or with ld?
- From: David Pettersson <dapet at mai dot liu dot se>
- Date: Mon, 24 Jan 2000 11:31:43 +0100 (MET)
Hi,
I have tried to compile some different c++ programs without success, and
some with success. I have installed my gcc with prefix /scratch/dapet.
Below follows the error message when I compile libsig, other programs
give similar messages. Is this a problem with my gcc install or with
/usr/bin/ld ??
version ...
bloodgood[libsigc++-0.8.5]> g++ -v
Reading specs from
/scratch/dapet/lib/gcc-lib/alphaev56-dec-osf4.0d/2.95.2/specs
gcc version 2.95.2 19991024 (release)
Error msg follows ...
...
Making all in handles
make[2]: Entering directory
`/scratch/dapet/privat/gtk/gtkmm/libsigc++-0.8.5/tests/handles'
/bin/sh ../../libtool --mode=link c++ -g -O2 -o handle handle.o
../../sigc++/libsigc.la
c++ -g -O2 -o .libs/handle handle.o ../../sigc++/.libs/libsigc.so
-Wl,-rpath -Wl,/scratch/dapet/lib
/usr/bin/ld:
/scratch/dapet/lib/gcc-lib/alphaev56-dec-osf4.0d/2.95.2/libgcc.a(exception.o):
terminate(void): multiply defined
/scratch/dapet/lib/gcc-lib/alphaev56-dec-osf4.0d/2.95.2/libgcc.a(_eh.o):
__throw: multiply defined
/scratch/dapet/lib/gcc-lib/alphaev56-dec-osf4.0d/2.95.2/libgcc.a(tinfo.o):
__rtti_class: multiply defined
/scratch/dapet/lib/gcc-lib/alphaev56-dec-osf4.0d/2.95.2/libgcc.a(tinfo.o):
__rtti_si: multiply defined
/scratch/dapet/lib/gcc-lib/alphaev56-dec-osf4.0d/2.95.2/libgcc.a(tinfo.o):
__rtti_user: multiply defined
collect2: ld returned 1 exit status
make[2]: *** [handle] Error 1
make[2]: Leaving directory
`/scratch/dapet/privat/gtk/gtkmm/libsigc++-0.8.5/tests/handles'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/scratch/dapet/privat/gtk/gtkmm/libsigc++-0.8.5/tests'
make: *** [all-recursive] Error 1
David.