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
_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to