Created
March 20, 2012 19:23
-
-
Save cslarsen/2140152 to your computer and use it in GitHub Desktop.
How to compile Objective-C on the command line on Mac OS X
This file contains 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
/* | |
* To compile objective-c on the command line: | |
* | |
* gcc -framework Foundation objc-gcc.m | |
* | |
* You may have to link with -lobjc or other libs, | |
* as required. | |
*/ | |
#import <Foundation/Foundation.h> | |
int main(int argc, char** argv) | |
{ | |
NSLog(@"Testing"); | |
} |
krishpranav
commented
Dec 31, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment