Re: Undefined Symbols during Linking
Re: Undefined Symbols during Linking
- Subject: Re: Undefined Symbols during Linking
- From: Pontus Ilbring <email@hidden>
- Date: Fri, 30 Dec 2005 14:43:50 +0100
On 12/30/05, Steve@DotMac <email@hidden> wrote:
>
Folks;
>
>
I'm getting a single error which prevents me from building.
>
>
During the Link Binary With Libraries phase I get:
>
/usr/bin/ld: Undefined symbols:
>
_objc_msgSendNonNil
>
_objc_msgSendNonNil_stret
>
collect2: ld returned 1 exit status
>
>
I
>
I google these 2 items and see they are mentioned in OpenDarwin as
>
explicitly exported from ObjC but are disabled entry points.
>
>
I admit to only the foggiest notion as to the implications of the
>
last part of that sentence.
>
>
But here I sit - stuck. These values do not exist in my code anywhere.
>
They smell like ObjC internals to me...
>
>
So what do I do?
They are ObjC internals, and for whatever reason not part of the
library you're linking against. Are you targeting pre-10.4? I've had
trouble with this when targeting 10.3, even though it should be
supported in 10.3.
Turning off the -fno-nil-receivers (aka Assume Non-nil Receivers) flag
in your build settings should solve your problem.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden