[Top][All Lists]

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

Re: build error: Undefined reference to 'objc_sync_enter'

From: Doug Simons
Subject: Re: build error: Undefined reference to 'objc_sync_enter'
Date: Wed, 25 Aug 2010 11:12:21 -0600

Thanks. Removing the weak reference fixes our problem. We're checking in that change to sync.m.


On Aug 25, 2010, at 9:47 AM, David Chisnall wrote:

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).


reply via email to

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