gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: build error: Undefined reference to 'objc_sync_enter'


From: David Chisnall
Subject: Re: build error: Undefined reference to 'objc_sync_enter'
Date: Wed, 25 Aug 2010 16:47:25 +0100

On 25 Aug 2010, at 16:24, Gregory Casamento wrote:

> The issue is the weak linking directive in sync.m.   Windows doesn't
> support weak linking, so it ignores these functions.


The weak linkage shouldn't be needed anymore.  It comes from back when sync.m 
was in Foundation.  Now it should be in ObjectiveC2.framework and libobjc2, so 
you should never have the case when it's present in both the ObjC runtime and 
the Foundation lib (which was the point of marking it weak - so that you always 
used the runtime's version in preference to the one in Foundation).

David



reply via email to

[Prev in Thread] Current Thread [Next in Thread]