How do I write and compile Objective-C code?

前端 未结 4 1950
忘了有多久
忘了有多久 2021-02-13 03:58

How do I write and compile Objective-C code in Linux?

I heard about Clang, but I couldn\'t find any example/tutorial about Clang/LLVM/Objective-C.

4条回答
  •  时光说笑
    2021-02-13 04:28

    sudo apt-get install build-essential gobjc gobjc++ gnustep gnustep-devel libgnustep-base-dev -y
    vi *.m
    gcc `gnustep-config --objc-flags` *.m -lgnustep-base -lobjc
    

提交回复
热议问题