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

Re: Link error


  • Subject: Re: Link error
  • From: Dario Accornero <email@hidden>
  • Date: Wed, 20 Apr 2005 13:28:51 +0200

On 20 Apr 2005, at 12:56, Dario I wrote:

My Carbon application builds fine with Xcode 1.5 on 10.3.9 for release targets (-Os, no -g), but it has started to fail building abruptly for debug targets (-O0 -g) with the following errors:

ld: /path/to/object/file.o illegal reference for -dynamic code (section difference reference from section (__TEXT,__eh_frame) relocation entry (694) to symbol: ___isnan defined in dylib: /usr/lib/libSystem.dylib)
ld: /path/to/object/file.o illegal reference for -dynamic code (section difference reference from section (__TEXT,__eh_frame) relocation entry (698) to symbol: ___isinf defined in dylib: /usr/lib/libSystem.dylib)

If I comment out the calls to __isnan and __isinf (with two underscores in my sources, I presume the third one is added by ld), I can build the debug target of my application again. However, this does not apply to the release target, which builds fine with or without the above calls.


The really weird thing is that I have *not* touched the file that generates the error in several months: the error *literally* appeared all of a sudden this morning, and only in debug targets.

Should I file a bug against this or is there an explanation? Searching with Google returns a list of pages where people have encountered this problem, but I couldn't find any exhaustive solution...

Besides -lz, I'm linking only against static libraries. In terms of frameworks, I link against Carbon, OpenGL, AGL, QuickTime, and OpenAL.

Thanks for any help,
Dario


_______________________________________________ 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: 
 >Link error (From: Dario Accornero <email@hidden>)

  • Prev by Date: Link error
  • Next by Date: Re: Subversion server
  • Previous by thread: Link error
  • Next by thread: Re: Subversion server
  • Index(es):
    • Date
    • Thread