摘要:[obj c]Hello World
程式碼
#import
int main(int argc,const char * argv[])
{
NSAutoreleasePool * pool=[[NSAutoreleasePool alloc] init];
NSLog (@"Hello World!");
[pool drain];
return 0;
}
寫完後檔案檔案放到C:\GNUstep\msys\1.0\home\username下
檔案命名為hellow.m
在shell下執行gcc hello.m
錯誤:Foundation/Foundation.h: No such file or directory,找不到Foundation.h ?
未完待續..