I am trying to compile the following simple Objective-C code in GNUStep with Windows 7.
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSLog (@"hello world");
[pool drain];
return 0;
}
I compile it using the following command line:
$ gcc `gnustep-config --objc-flags` -L /GNUstep/System/Library/Libraries hello.m -o hello -lgnustep-base -lobjc
It doesn't compile, and I get the following error:
sh: gcc : command not found
you have to install all the above components then you are good to go u can use foundantion.h