On Fedora, install dependencies:
yum install gcc-objc libobjc gnustep-base-devel gnustep-gui-develIf you want to use llvm, do a "yum install clang"
To compile:
gcc `gnustep-config --objc-flags` `gnustep-config --objc-libs` -lgnustep-base helloworld.m -o helloworldYou have to use clang instead of gcc if you want to use blocks and you have to add '-fblocks' flag.
@property @synthesize works. Blocks also work.
On Ubuntu, install dependencies:
sudo apt-get install gobjc libobjc2 lib32objc2 libgnustep gnustep-base gnustep-devel clangTo compile:
sudo ln -s /usr/lib/gcc/x86_64-linux-gnu/4.4/include/objc/ /usr/local/include/objc
clang `gnustep-config --objc-flags` `gnustep-config --objc-libs` -lgnustep-base helloworld.m -o helloworldOn my machine (running Ubuntu 10.04), because gcc version is 4.4, I have to use clang. I also couldn't get blocks to work.
Not all language features are possible on linux, for example @autoreleasepool {} works on neither Fedora nor Ubuntu.