discuss-gnustep
[Top][All Lists]
Advanced

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

Re: GNUSTEP-BASE Compile Error, SVN of 3/26/2012, /Foundation/NSOperatio


From: Niels Grewe
Subject: Re: GNUSTEP-BASE Compile Error, SVN of 3/26/2012, /Foundation/NSOperation.h line 154
Date: Wed, 28 Mar 2012 19:40:55 +0000

Am 27.03.2012 um 03:04 schrieb Citizen Jimserac:

> Compiling it on an Ubuntu 11.10 with xfce desktop...  Got 2 errors,
> same line, see below:
> 
> In file included from ../Headers/Foundation/Foundation.h:92:
> ../Headers/Foundation/NSOperation.h:154:1: error: expected parameter
> declarator
> DEFINE_BLOCK_TYPE(GSOperationCompletionBlock, void, void);
> ^
> ../Headers/GNUstepBase/GSBlocks.h:73:40: note: expanded from macro
>      'DEFINE_BLOCK_TYPE'
>    retTy (*invoke)(void*, argTys, args);\
>                                       ^
> In file included from NSJSONSerialization.m:10:
> In file included from ../Headers/Foundation/Foundation.h:92:
> ../Headers/Foundation/NSOperation.h:154:1: error: 'void' must be the
> first and
>      only parameter if specified
> DEFINE_BLOCK_TYPE(GSOperationCompletionBlock, void, void);
> ^
> ../Headers/GNUstepBase/GSBlocks.h:73:20: note: expanded from macro
>      'DEFINE_BLOCK_TYPE'
>    retTy (*invoke)(void*, argTys, args);\
>                   ^
> 2 errors generated.
> 
> 
> Maybe change GSOperationCompletionBlock to void ??
> 
> Workarounds?

This was a screw-up on my part and should be fixed in a more recent svn 
version. The compile output you've posted looks like it's coming from clang, 
though. I wonder why proper blocks support wasn't enabled for it…

Cheers,

Niels


reply via email to

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