sudo apt-
get
install gnustep
sudo apt-
get
install gnustep-devel
sudo apt-
get
install gobjc
. /usr/share/GNUstep/Makefiles/GNUstep.sh
#import <Foundation/Foundation.h>
int
main (
int
argc,
const
char
* argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSLog (
@"hello world"
);
[pool drain];
return
0;
}
gcc `gnustep-config --objc-flags` -lgnustep-
base
hello.m -o hello
./hello