vicunana 2014-07-30
命令:clang -fobjc-arc -framework Foundation <prog file> -o <exe file>
样例:
hello.h
——————
#import <Foundation/Foundation.h>
hello.m
——————
#import “hello.h”
int main()
{
NSLog(@“hello");
return 0;
}
$ clang -fobjc-arc -framework Foundation hello.m -o hello
$ ./hello #执行