discuss-gnustep
[Top][All Lists]
Advanced

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

Foundation.h help


From: cbw2005
Subject: Foundation.h help
Date: Mon, 29 Nov 2010 06:07:59 +0000 (UTC)

Using a programming book, one of the exercises has me try

#import <Foundation/Foundation.h>
int main(int argc, const char * argv[])

{
NSAutoreleasePool * Pool = [NSAutoreleasePool alloc] init];
NSLog (@"programming is fun");
[pool drain];
return 0;
}

// i am using Windows vista, GNUstep to compile, and jEdit to enter the data.  i get these errors from GNUstep

$ gcc -o run prog1.m
prog1.m:1:34: error: Foundation/Foundation.h: No such file or directory
prog1.m: In function 'main' :
prog1.m:5: error: 'NSAutoreleasePool' undeclared (first use in this function)
prog1.m:5: error: (Each undeclared identifier is reported only once
prog1.m:5: error: for each function it appears in.)
prog1.m:5: error: 'Pool' undeclared (first use in this function)
prog1.m:5: error: expected ';' before 'init'
prog1.m:5: error: expected statement before ']' token
prog1.m:5: error: cannot find interface declaration for 'NXConstantString'
prog1.m:5: error: 'pool' undeclared (first use in this function)


//thanks for any help anyone can provide!!

reply via email to

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