Hi, i`m an obj-C beginner, i try to compile my code with shell command but i got this error:
Code:
error:Foundation/Foundation.h: No such file or directory
I`m very confused, the GCC is well installed, also the GNUstep, please help, i can`t go on any more, here is my code:
Code:
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
// insert code here...
NSLog(@"Hello, World!");
[pool drain];
return 0;
}
the command that i used to compile is:
Code:
gcc -o hello hello.m
the file`s name is "hello".
THANX in advance