Re: Cocoa-dev Digest, Vol 5, Issue 533
Re: Cocoa-dev Digest, Vol 5, Issue 533
- Subject: Re: Cocoa-dev Digest, Vol 5, Issue 533
- From: Daniel Child <email@hidden>
- Date: Thu, 03 Apr 2008 10:08:43 -0400
evLanguageAsString is a function defined in a file called DataTypes.h.
Both DataDescription.h and Step1_SourceTypeController.h import
DataTypes.h.
I thought #import would take care of the possibility of duplication.
Are you suggesting I need to separate the declaration of the function
from the implementation, placing the implementation into a different
file? Then I'm wondering why Xcode 3 would not accept it but Xcode 2
would....
On Apr 3, 2008, at 4:00 AM, email@hidden wrote:
ld: duplicate symbol _evLanguageAsString in
/Users/.../build/.../Debug/LSC Data
Preparation.build/Objects-normal/ppc/DataDescription.o
and
/Users/.../build/.../Debug/LSC Data
Preparation.build/Objects-normal/ppc/Step1_SourceTypeController.o
I have no idea why this is happening, especially since there is no
evLanguageAsString in either DataDescription.h or .m. There is one
in the
sourcetype controller files, though not prefixed by _.
So how would a copy get in the object file???
Does DataDescription.[mh] include Step1_SourceTypeController.h? It
sounds to
me like you accidently included an implementation of
evLanguageAsString in
the header file for Step1_SourceTypeController, instead of just the
prototype. But that doesn't really explain why it compiled on Tiger.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden