自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Windows平臺下Objective-C模擬開發(fā)環(huán)境搭建

移動開發(fā) iOS
Windows平臺下Objective-C模擬開發(fā)環(huán)境搭建 是本文要介紹的內(nèi)容,主要是來學習如何在Windows平臺下實現(xiàn)Objective-C 模擬開發(fā)環(huán)境搭建,包括安裝 GNUstep 、編寫 Hello, World! 、Objective-C程序編譯、gcc 快捷方式等。

Windows平臺Objective-C模擬開發(fā)環(huán)境搭建  是本文要介紹的內(nèi)容,主要是來學習如何在Windows平臺下實現(xiàn)Objective-C 模擬開發(fā)環(huán)境搭建,包括安裝 GNUstep 、編寫 Hello, World! 、Objective-C程序編譯、gcc 快捷方式等。Objective-C Windows,Objective-C 模擬開發(fā)環(huán)境,Objective-C 開發(fā)環(huán)境下載,Objective-C 開發(fā)環(huán)境安裝。

1、安裝 GNUstep

GNUstep 官方網(wǎng)站

GNUstep Windows Installer 提供了 Windows 平臺下的 Objective-C 的模擬開發(fā)環(huán)境,一共有四個軟件包,其中GNUstep System 和 GNUstep Core 必裝,GNUstep Devel和Cairo Backend 選裝。

2、編寫 Hello, World!

安裝完成后,在開始菜單里的GNUstep選項里執(zhí)行shell,就能打開命令行,在這里就可以使用vi編寫Objective-C程序了,不過操作起來總有些繁瑣,其實也可以直接在Windows平臺里進入C:\GNUstep\home\username目錄,在這里用你喜歡的工具編寫Objective-C程序,然后再進入shell里編譯。

直接給出 helloworld.m 文件內(nèi)容,取自 Programming in Objective-C 2.0一書:

以下為引用內(nèi)容:

  1. #import <Foundation/Foundation.h> 
  2. int main (int argc, const char *argv[]) {  
  3. NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];  
  4. NSLog(@"Hello World!");  
  5. [pool drain];return 0;  

3、程序編譯

***次編譯:

以下為引用內(nèi)容:gcc -o helloworld helloworld.m結(jié)果出現(xiàn)錯誤信息,找不到頭文件:

以下為引用內(nèi)容:

  1. helloworld.m:1:34: Foundation/Foundation.h: No such file or directory  
  2. helloworld.m: In function `main':  
  3. helloworld.m:4: error: `NSAutoreleasePool' undeclared (first use in this function)  
  4. helloworld.m:4: error: (Each undeclared identifier is reported only once  
  5. helloworld.m:4: error: for each function it appears in.)  
  6. helloworld.m:4: error: `pool' undeclared (first use in this function)  
  7. helloworld.m:5: error: cannot find interface declaration for `NXConstantString'  

小結(jié):Windows平臺Objective-C模擬開發(fā)環(huán)境搭建的內(nèi)容介紹完了,希望通過本文的學習能對你有所幫助!

責任編輯:zhaolei 來源: 百度博客
相關(guān)推薦

2011-08-22 09:48:16

WindowsObjective-C

2011-07-27 17:41:35

Objective-C Xcode

2014-04-01 10:50:42

iOS開發(fā)runtimeObjective-C

2011-08-04 15:55:50

Windows 編譯 Objective-

2011-08-10 18:07:29

Objective-C反射

2011-04-08 10:51:17

Objective-CiOS

2011-08-03 16:22:05

Objective-C CodeBlocks

2011-07-29 15:47:21

iPhone開發(fā) Objective- C

2011-05-11 15:58:34

Objective-C

2013-03-27 12:54:00

iOS開發(fā)Objective-C

2013-06-20 10:40:32

Objective-C實現(xiàn)截圖

2011-05-11 11:20:26

Objective-C

2014-04-03 09:36:47

Objective-Cruby消息傳遞

2014-09-26 09:49:48

SwiftObjective-C

2010-09-01 09:19:33

Objective-CiPhone開發(fā)iPhone

2011-07-25 17:31:49

iPhone Objective-

2011-07-28 15:11:23

iOS Objective-

2011-08-04 14:58:37

Objective-C Cocoa NSString

2011-08-02 13:16:36

Objective-C 語法 函數(shù)

2011-05-11 13:54:08

Objective-C
點贊
收藏

51CTO技術(shù)棧公眾號