help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gcc on mac: muliple defined symbols


From: Marc Schellens
Subject: gcc on mac: muliple defined symbols
Date: Wed, 19 May 2004 14:47:57 +0900
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1

I have a C++ project which compiles and links fine under linux.
But on on OS X pather, I get loads of errors while linking:

ld: multiple definitions of symbol _ZN5Data_I10SpDComplexE5ClearEv.eh
basic_op.o definition of absolute _ZN5Data_I10SpDComplexE5ClearEv.eh
(value 0x0)
datatypes.o definition of absolute _ZN5Data_I10SpDComplexE5ClearEv.eh
(value 0x0)
ld: multiple definitions of symbol _ZN5Data_I10SpDComplexE8DataAddrEm.eh
basic_op.o definition of absolute _ZN5Data_I10SpDComplexE8DataAddrEm.eh
(value 0x0)
datatypes.o definition of absolute _ZN5Data_I10SpDComplexE8DataAddrEm.eh
(value 0x0)
ld: multiple definitions of symbol _ZN5Data_I10SpDComplexEC1ERK9dimension.eh
basic_op.o definition of absolute
_ZN5Data_I10SpDComplexEC1ERK9dimension.eh (value 0x0)
datatypes.o definition of absolute
_ZN5Data_I10SpDComplexEC1ERK9dimension.eh (value 0x0)
ld: multiple definitions of symbol _ZN5Data_I10SpDComplexEC1ERKS1_.eh
basic_op.o definition of absolute _ZN5Data_I10SpDComplexEC1ERKS1_.eh
(value 0x0)
...

if I link it with -m it links, but the program hangs on startup.
The problem seems that gcc 3.3.0 on Mac OS X has problems with
inlined member functions within a template.

Does anybody know about this and is there an easy way around it?
Any suggestions are welcome.

Thanks,
marc



reply via email to

[Prev in Thread] Current Thread [Next in Thread]