Skip to content

Instantly share code, notes, and snippets.

@jurikern
Created January 13, 2013 16:06
Show Gist options
  • Save jurikern/4524835 to your computer and use it in GitHub Desktop.
Save jurikern/4524835 to your computer and use it in GitHub Desktop.
Compiling Objective-C Files an Linux (Ubuntu)
Before:
sudo apt-get -y install gnustep
sudo apt-get -y install gnustep-devel
sudo apt-get -y install build-essential
sudo apt-get -y install gobjc
sudo apt-get -y install gnustep-make
sudo apt-get -y install libgnustep-base-dev
Compiling for one source file (For example main.m):
gcc `gnustep-config --objc-flags` main.m -o hello -I /usr/include/GNUstep/ -L /usr/lib/GNUstep/ -lgnustep-base
Compiling for many *.h and *.m files:
gcc `gnustep-config --objc-flags` *.m -o hello -I /usr/include/GNUstep/ -L /usr/lib/GNUstep/ -lgnustep-base
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment