Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Link error



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: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Link error (From: Dario Accornero <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.