• 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: Undefined symbol on class I've used dozens of times
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Undefined symbol on class I've used dozens of times


  • Subject: Re: Undefined symbol on class I've used dozens of times
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Sat, 29 Nov 2008 10:53:18 +0100


Le 29 nov. 08 à 07:18, Ken Tozier a écrit :

Hi

I wrote a base64 encoder/decoder category on NSData and NSString and have been using it without problem for almost two years. Suddenly, today, when I tried to use it in a new project, Xcode is telling me four of the utility functions defined in the same file as the NSCategories are "undefined symbols." I have no clue why this suddenly started becoming a problem for Xcode, because as recently as a month ago, I created a project that used these categories and got zero "undefined symbol" errors. I've not done any Xcode or system upgrades since last using the class.

What could be causing this? The symbols are literally defined inside the file where Xcode says they aren't available. Anyone have an idea why Xcode isn't seeing functions in the exact file it's compiling?

Thanks for any help


If this is really functions (and not methods), this may append if you're trying to use them on a (Obj-)C++ file and do declare them as extern "C".
Else, if it's methods, there is some new symbols visibility rules in the 64bit compiler/linker. Are you trying to build a 64 bit binary ?
Else, you will have to give more info about your error. (transcript of compilation)



_______________________________________________ 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
References: 
 >Undefined symbol on class I've used dozens of times (From: Ken Tozier <email@hidden>)

  • Prev by Date: Re: Often Crashes of XCODE 3.0 and 3.1.2
  • Next by Date: not very clean
  • Previous by thread: Undefined symbol on class I've used dozens of times
  • Next by thread: not very clean
  • Index(es):
    • Date
    • Thread