This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Multiply Defined Symbols
- From: "Matt" <bigvacub at hotmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 06 Nov 2002 11:37:03 -0500
- Subject: Multiply Defined Symbols
- Bcc:
I am using GCC 3.0.1 to build a shared object on Solaris 8. The compilation
goes fine, but when I try to link, I get tons of multiply defined errors.
For example:
ld: fatal: symbol `std::strrchr(char*, int)' is multiply-defined:
(file src/utils/command.o and file src/utils/hash.o);
All of the multiply defined symbols are from standard include files (i.e
strrchr, strcasecmp, operator+....), they are not symbols from source files
that I wrote.
Any help would be greatly appreciated.
Matt
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus