Re: linking error
Re: linking error
- Subject: Re: linking error
- From: WT <email@hidden>
- Date: Thu, 25 Jun 2009 11:46:10 +0200
On Jun 25, 2009, at 11:38 AM, Dave Keck wrote:
The link error is pretty self-explanatory. To solve issues like this,
I'd first change the header like so:
extern NSString *const someString;
and create a SharedDefs.m:
NSString *const someString = @"halla";
This way, any object file can reference someString, but only one
object file will actually define it - SharedDefs.m. And voila, link
errors be gone.
David
Hi David,
I understand the message, and I thought of the solution you suggested.
What I'm puzzled with is that I thought #import only imports once.
Wagner
_______________________________________________
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