• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
"multiple definitions of symbol" - warning or error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"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


  • Prev by Date: Re: [Config Files] What can I really modify in a config file?
  • Next by Date: Where to look for dynamic code loading
  • Previous by thread: xcode & webservicescore
  • Next by thread: Where to look for dynamic code loading
  • Index(es):
    • Date
    • Thread