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