Home | Mirror | Search

第 52 章 Objective-C

$ sudo apt-get install gobjc gobjc++

$ sudo apt-get install gnustep-make
    

例 52.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
    
comments powered by Disqus