iam beginner in Objective-C, I tried to compile a small Hello world program to run, iam using Windows Vista and the shell console, my code is:
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSLog(@"Hello, World!");
[pool drain];
return 0;
}
The shell result shows me the following error:
Foundation.h: no such file found
My command to compile:
gcc -o hello hello.m
I will be grateful for any help, thanks in advance :)
source
share