This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
ld: duplicate symbol typeinfo
- From: Jérôme Seydoux <madbird2 at free dot fr>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Mon, 19 Nov 2007 10:41:33 +0100
- Subject: ld: duplicate symbol typeinfo
Hello,
After migrating to Mac OS X 10.5, and its gcc 4.0.1, I have the
following link error in my XCode project:
ld: duplicate symbol typeinfo for TArray<long>in CMailBrowser.o and CPMApp.o
CMailBrowser.o and CPMApp.o are two c++ classes, which have some of
their superclasses in common (these classes are from the GUI framework
PowerPlant). Some of these classes have a member variables of class
TArray, which is a template class.
I don't understand what this link error means, why it was not occurring
with previous versions of gcc, and what can I do to fix it?
Thanks for any help
Jérôme