linux – How do I write and compile Objective-C code?

linux – How do I write and compile Objective-C code?

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

You download and build LLVM as the compiler infrastructure; then you download and build the CLANG front-end to compile C/C++ and Objective C/C++.

I guess you could try following this quick start guide. Mind that Clang could actually replace GCC when working with these languages.

linux – How do I write and compile Objective-C code?

Take a look at http://www.gnustep.org/ they have tools for developing with Objective-C 2.0 for LINUX. The source files and hints on how to install it on several LINUX distros are here: http://www.gnustep.org/resources/sources.html

Leave a Reply

Your email address will not be published.