And the other typo is that when defining it you wrote 'Pool' (upper case P) while when using it you wrote 'pool' (lower case p). Since C and so ObjC is case sensitive this difference matters and causes the messages about:

prog1.m:8: error: 'pool' undeclared (first use in this function)

cheers,

        Lars

Am 29.11.2010 um 16:42 schrieb Nicola Pero:


NSAutoreleasePool * Pool = [NSAutoreleasePool alloc] init];

There's a typo ... that line should be

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

Thanks


_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep


_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to