Chinaunix首页 | 论坛 | 博客
  • 博客访问: 378682
  • 博文数量: 102
  • 博客积分: 1395
  • 博客等级: 中尉
  • 技术积分: 1050
  • 用 户 组: 普通用户
  • 注册时间: 2012-11-05 18:09
文章分类

全部博文(102)

文章存档

2013年(25)

2012年(77)

分类: iOS平台

2013-03-30 10:20:02

1. 在软件中心安装 gnustep
2.
#echo 'export LIBRARY_PATH=/usr/lib/GNUstep/System/Library/Libraries' >> ~/.profile
2 #echo 'export OBJC_INCLUDE_PATH=/usr/include/GNUstep/Headers' >> ~/.profile
3 #source ~/.profile

然后执行GNUstep.sh的脚本,自动加载其他环境PATH:
1 #chmod +x /usr/share/GNUstep/Makefiles/GNUstep.sh
2 #source /usr/share/GNUstep/Makefiles/GNUstep.sh

也加入.profile文件, 以便用户登陆系统时加载

1 #echo 'source /usr/share/GNUstep/Makefiles/GNUstep.sh' >> ~/.profile

3. 安装gobjc

sudo apt-get install gobjc

4. 测试程序

 #import  int main( int argc, const char *argv[] ) { printf( "hello world\n" ); return 0; }
 
 
 
 gcc -o hello hello.m -l objc
 

阅读(1954) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~