读书人

Objective C 学习心得 (1)

发布时间: 2012-08-11 20:50:31 作者: rapoo

Objective C 学习心得 (一)

}??

?

??? 在Windows环境下用文本编辑器(Editplus,UE等),编写上述代码,并且保存到GNUstep安装目录下的/home下,取名为helloworld.m。在GNUstep的console窗口命令行下,

??? 1、cd /home

??? 2、gcc -o helloworld helloworld.m -I/GNUstep/System/Library/Headers -fconstant-string-class=NSConstantString -L/GNUstep/System/Library/Libraries -lobjc -lgnustep-base

??? 3、运行helloworld.exe

?? 说明:第二步中的一些参数明说,如果熟悉Linux/Unix下C/C++编译的话,上述参数应该很熟悉,-I表示头文件查找的路径,-L表示库文件查找路径,-l表示需要链接的库文件。但是,-fconstant-string-class=NSConstantString? 对于这个参数可能比较陌生,这个参数主要是指定常量字符串所使用的class。??

??? helloworld.exe编译并运行成功的话,说明windows下Objective C开发环境就搭建好了,这样就可以开始以廉价方式的学习Objective C。:)

?

转:http://blog.csdn.net/waden/article/details/5765294

1 楼 cantellow 2011-11-15 怎么干起移动开发了? 2 楼 dxm1986 2011-11-15 cantellow 写道怎么干起移动开发了?

没有。刚好看见,随便粘贴了一下。呵呵。

读书人网 >互联网

热点推荐