以 ArchLinux 为例
sudo pacman -S gnustep-base gnustep-make
#import <Foundation/Foundation.h> int main(int argc, const char *argv[]) { NSLog(@"Hello world"); return 0; }
gcc gnustep-config --objc-flags hello.m -lobjc -lgnustep-base
gnustep-config --objc-flags
./a.out