This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Multiply Defined Symbols


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


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