How does one use Obj-C 2.0 with GNUstep?

前端 未结 2 1200
耶瑟儿~
耶瑟儿~ 2020-12-31 21:37

I\'m aware of the existence of libobjc2, and I gather that I\'ll need to use clang rather than GCC, but I can\'t find any basic instructions of what\'s different about the c

2条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-31 22:15

    According to the GNUstep Wiki, you need just need to compile your code with -fblocks and -fobjc-nonfragile-abi. Then you just use the language features in your code.

提交回复
热议问题