This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

problem with my gcc install or with ld?



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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]