discuss-gnustep
[Top][All Lists]
Advanced

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

Re: getting : error: 'autoreleasepool' undeclared (first use in this fu


From: Riccardo Mottola
Subject: Re: getting : error: 'autoreleasepool' undeclared (first use in this function)
Date: Thu, 03 Jan 2013 01:24:19 +0100
User-agent: Mozilla/5.0 (X11; NetBSD i386; rv:17.0) Gecko/17.0 Thunderbird/17.0

Hi,

On 01/02/13 15:33, umen wrote:
and when compiling im getting this error:
$ make
This is gnustep-make 2.6.2. Type 'make print-gnustep-make-help' for help.
Making all for tool IntTestInheritance...
 Compiling file main.m ...
main.m: In function 'main':
main.m:8:2: error: stray '@' in program
main.m:8:3: error: 'autoreleasepool' undeclared (first use in this function)
main.m:8:3: note: each undeclared identifier is reported only once for each
function it appears in
main.m:8:19: error: expected ';' before '{' token
main.m:22:1: warning: control reaches end of non-void function
[-Wreturn-type]
make[3]: *** [obj/IntTestInheritance.obj/main.m.o] Error 1
make[2]: *** [internal-tool-all_] Error 2
make[1]: *** [IntTestInheritance.all.tool.variables] Error 2
make: *** [internal-all] Error 2

why ? 
thanks !
just don't use the new syntactic sugar:

NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];

// do your stuff

[pool drain];


Riccardo


reply via email to

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