Created
January 13, 2013 16:06
-
-
Save jurikern/4524835 to your computer and use it in GitHub Desktop.
Compiling Objective-C Files an Linux (Ubuntu)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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