[Top][All Lists]

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

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

From: umen
Subject: Re: getting : error: 'autoreleasepool' undeclared (first use in this function)
Date: Wed, 2 Jan 2013 19:19:17 -0800 (PST)

Thanks for your responses , if i want to use Clang in windows to be updated with the objectiv C 
can i ?

On Thu, Jan 3, 2013 at 2:23 AM, Riccardo Mottola-5 [via GNUstep] <[hidden email]> wrote:

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
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];


Discuss-gnustep mailing list
[hidden email]

If you reply to this email, your message will be added to the discussion below:
To unsubscribe from getting : error: 'autoreleasepool' undeclared (first use in this function), click here.

View this message in context: Re: getting : error: 'autoreleasepool' undeclared (first use in this function)
Sent from the GNUstep - General mailing list archive at Nabble.com.

reply via email to

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