在ubuntu上開發 objective c 的經驗
1) 安裝需要的 library, header files
objc
>sudo apt-get install gobjc++
>sudo apt-get install libgnustep-base-dev
>sudo apt-get install gnustep
2) import header file
#import <Foundation/NSObject.h>
3) 編譯
gcc -I/usr/include/GNUstep/ -c *.m
gcc -o some_execute *.o -lobjc -lgnustep-base
No comments:
Post a Comment