gnustep-dev
[Top][All Lists]
Advanced

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

Re: Getting Objective-C 2.0 working


From: David Chisnall
Subject: Re: Getting Objective-C 2.0 working
Date: Fri, 18 May 2012 19:40:01 +0100

On 18 May 2012, at 18:41, Laurent Michel wrote:

> Calling [GSMutableSet -enumerateObjectsUsingBlock:] with incorrect signature. 
>  Method has address@hidden:4^{?=^vii^?}8, selector has 
> address@hidden:address@hidden

This sounds like you did not compile GNUstep with a compiler with blocks 
support (which also means that you will get exciting things happening if you 
try subclassing NSRegularExpression).  In this case, GNUstep will fall back to 
defining the block type as a struct and doing some hackery to invoke the block.

Try adding -fblocks to the CFLAGS your GNUstep install.  This is default on 
*BSD, but not on some other operating systems.  It should be implicit if you 
are using the GNU runtime and specify the non-fragile ABI though, so the fact 
that it isn't implies that yo are using the fragile ABI (which I would 
recommend against).  Try specifying --disable-mixed-abi (or something like 
that, try --help to find the correct option) to configure for base.

David

-- Sent from my Apple II


reply via email to

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