Objective-c in Ubuntu Linux
来源:互联网 发布:小说录入软件 编辑:程序博客网 时间:2024/06/03 16:58
Objective-c in Linux, very common question Many times i stumbled with this question how can i compile my objective-c code in ubuntu or in linux and the Answer is “GNUSTEP” . It’s inherited from Apple NextStep . so how can you use
Installation procedure :
Login with your root account and type these commands one by one
sudo apt-get -y install build-essential
sudo apt-get -y install gnustep
sudo apt-get install gobjc
sudo apt-get install gnustep-make
sudo apt-get install libgnustep-base-dev
How To Run Objective-c:
Every objective-c file must have a “.m” extension e.g main.m . Open your editor and sve your hello world (hello.m)
#import
int main( int argc, const char *argv[] ) {
printf( “hello world\n” );
return 0;
}
Compile the application
shell> gcc -o hello hello.m
Run the application
shell>./hello
Thats it . Thanks for enjoying this article , If you have any doubt or suggestion please comment the post
Read more: http://vipinsahu.com/objective-c-in-ubuntu-linux#ixzz2C5MMEHYL
转载地址:http://vipinsahu.com/objective-c-in-ubuntu-linux
- Objective-c in Ubuntu Linux
- JSON in objective c
- Protocol in Objective-C
- selector in Objective-C
- NS_BLOCK_ASSERTIONS in Objective-C
- Categories in Objective-C
- Singletons in Objective-C
- Delegation in Objective-C
- Singletons in Objective-C
- Protocol in Objective-C
- Constants in Objective C
- WebSocket in Objective-C
- Protocol in Objective-C
- Linux下学objective c的好办法,在ubuntu下使用GNUstep make编译objective c
- Improved logging in Objective-C
- Static variable in Objective C
- Recursive Blocks in Objective-C
- Improved logging in Objective-C
- Java线程_05
- 获得主机名和IP地址
- 日期工具转换,取得当前半年、一年、本周、当前季度日期等开始结束时间
- DEV C++的OPENGL环境配置
- 在asp.net中的repeater控件绑定日期只显示年月日,不显示时分秒
- Objective-c in Ubuntu Linux
- Android Application 对象介绍
- linux 十六进制查看
- DNK编程 JNI 之 javah
- Linux下Openssl的安装全过程
- Qtopia4.4.3的编译
- 70余个给开发者的IDE
- wget 命令用法详解
- java开发中JDBC连接数据库代码和步骤