Re: Link error
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>) |