"multiple definitions of symbol" - warning or error?
"multiple definitions of symbol" - warning or error?
- Subject: "multiple definitions of symbol" - warning or error?
- From: Brad Oliver <email@hidden>
- Date: Wed, 1 Mar 2006 15:43:55 -0700
In a few of the apps I'm building, I see an error - "multiple
definitions of symbol", and sure enough the symbol is defined in two
different files.
What's odd is that I also have a few cases where I get this, but as a
warning -- typically when I've got a function that is overriding one
in a system framework.
CodeWarrior would make duplicate symbols appear as warnings and would
take the symbol that came first in the link order.
So my question: how does Xcode/ld decide when multiple symbols are an
error and when they are a warning? And is there a way to force it to
pick one?
--
Brad Oliver
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden