Re: duplicate symbols in Xcode 3
Re: duplicate symbols in Xcode 3
- Subject: Re: duplicate symbols in Xcode 3
- From: Robert Stainsby <email@hidden>
- Date: Tue, 1 Jan 2008 22:04:22 +1100
A program that I've been working on for a while, that I upgraded
from Xcode 2 to Xcode 3 when I upgraded to Leopard, has been
manifesting weirdness in regarding certain symbols as multiply
defined when I don't think they are.
I had similar problems, but managed to resolve them today. Our
projects may have appeared to work correctly in Xcode 2 due to
Zerolink, which is no longer used in Xcode 3. These discussions gave
me some useful clues:
http://forums.macrumors.com/showthread.php?t=328724
http://www.mackb.com/Uwe/Forum.aspx/programming/3110/XCode-2-4-unable-to-create-a-deployment-version
In my case, there were several constants with the same names declared
in different files.
I wanted to share some of these constants between the files. I fixed
these by sorting out my declarations ("extern <type> const <varname>")
and definitions "<type> const <varname> = <value>".
I wanted other constants to be private to the individual files
concerned - fixed by prefixing the definition with "static".
Hope this helps with resolving your problems.
======================================
Robert Stainsby
Melbourne, Australia
Email; Video, voice & text chat (iChat AV/AOL IM): email@hidden
http://web.mac.com/rjsdev/
_______________________________________________
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