第 28 章 Objective-C
$ sudo apt-get install gobjc gobjc++
$ sudo apt-get install gnustep-make
例 28.1. Objective-C hello world
$ cat hello.m
#import <stdio.h>
int main( int argc, const char *argv[] ) {
printf( "hello world\n" );
return 0;
}
$ gcc hello.m
$ ./a.out
hello world
原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。