wallion 发表于 2013-1-14 22:36:02

windows下开发objec c

开发工具
   http://www.gnustep.org/resources/sources.html#windows
   (1)、gnustep-msys-system-0.25.1-setup.exe-----必须
   (2)、gnustep-core-0.25.0-setup.exe----必须
   (3)、gnustep-devel-1.1.1-setup.exe----可选
   (4)、gnustep-cairo-0.22.1-setup.exe----可选

安装完成后设置环境变量:
   GNUSTEP_MAKEFILES = C:\GNUstep\GNUstep\System\Library\Makefiles
   path=C:\GNUstep\GNUstep\System\Tools;C:\GNUstep\mingw\bin;

helloworld.m
   
   #import <stdio.h>
   int main(int argc,const char* argv[]) {
      printf("Hello World!");
      return 0;
   }

GNUmakefile
    include $(GNUSTEP_MAKEFILES)/common.make
    TOOL_NAME = hello
    hello_OBJC_FILES = hello.m
    include $(GNUSTEP_MAKEFILES)/tool.make

备注:
   GNUStep 当前不支持Object C 2.0新特性,如:@property
来源:
http://blog.joomla.org.tw/mobile/59-iphone/103-objective-c-gnustep.html
页: [1]
查看完整版本: windows下开发objec c