• 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
Re: linking error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: linking error


  • Subject: Re: linking error
  • From: Dave Keck <email@hidden>
  • Date: Wed, 24 Jun 2009 23:38:24 -1000

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
_______________________________________________

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

  • Follow-Ups:
    • Re: linking error
      • From: WT <email@hidden>
References: 
 >linking error (From: WT <email@hidden>)

  • Prev by Date: Re: Design for custom tableviewcell button action
  • Next by Date: Re: linking error
  • Previous by thread: linking error
  • Next by thread: Re: linking error
  • Index(es):
    • Date
    • Thread