• 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
Linker complains about undefined symbols only in release builds
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Linker complains about undefined symbols only in release builds


  • Subject: Linker complains about undefined symbols only in release builds
  • From: Greg Hurrell <email@hidden>
  • Date: Mon, 17 Apr 2006 14:50:13 +0200

I'm using a custom framework in my application but the linker is dying with "undefined symbol" errors when I try to link the application. Specifically it is complaining that the symbol corresponding to one of my classes in the framework is not there.

* This occurs only in "Release" builds, not "Debug" builds (presumably because in the "Debug" builds ZeroLink is shielding me from the error by skipping the linking).

* The build log shows that the class in question is definitely being compiled in both build styles.

* Running "nm" on the built framework shows that the symbol is indeed missing from the "Release" build but is present in the "Debug" build.

* The missing symbol is really missing, not just being stripped; I know this because if I inspect an unstripped copy of the framework I see that it's really not there, but only in the "Release" build.

* There are various classes in the framework and all of them work fine except for that one mysteriously missing class.

* The framework itself compiles and links without any warnings or errors.

* I have been building this framework and application fine for months without this error.

* Quitting/restarting Xcode has no effect.

* Blowing away my build and build intermediates folders has no effect.

* Blowing away the shared precompiled headers cache has no effect.

* Removing the offending class and header file from the framework target and then re-adding them has no effect.

Any suggestions for something further I could try to work around this issue? This has me pulling my hair out...

Best wishes,
Greg

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Follow-Ups:
    • Re: Linker complains about undefined symbols only in release builds
      • From: Mark Suska <email@hidden>
  • Prev by Date: Re: gcc vs. stdc++ dylib usage
  • Next by Date: Re: SCM and XCode
  • Previous by thread: NSComboBox ToolTip for each item
  • Next by thread: Re: Linker complains about undefined symbols only in release builds
  • Index(es):
    • Date
    • Thread