0

I have OS X Mavericks and I want to try to learn Objective-C(++). For this, I need to install the gobjc compiler, how do it (I've tried to install gobjc from sources but it's still not present)?

2
  • 2
    Is there a specific reason not to install Xcode from the App Store? – nohillside May 3 '14 at 14:44
  • and note to bootstrap getting any compiler etc you will need to install Xcode – mmmmmm May 3 '14 at 15:13
1

The most straightforward way to install an Objective-C compiler is by installing Xcode (which is available free from the App Store). It gives you both the IDE and the command-line compilers (there's an option inside Xcode to install the latter). If you don't want to install the IDE, you can install the command-line tools only using xcode-select --install.

Once you have the command-line tools installed, you can use them to bootstrap GCC if you'd prefer to use that.

12
  • Is XCode command tools free? – sosolal May 4 '14 at 14:26
  • @sosolal Yes, Xcode and the command line tools are freely installable on Mavericks. – mjturner May 4 '14 at 21:22
  • I mean as in freedom: www.gnu.org/philosophy/free-sw.html – sosolal May 6 '14 at 15:24
  • @sosolal Sorry, thought you meant as in beer :) I don't know if all of them are free, but the compiler suite is LLVM, which is BSD licensed. Of course Apple have probably applied their own patches to it, but the compiler itself is open source. – mjturner May 6 '14 at 18:49
  • But gobjc doesn't works, Xcode or not. – sosolal May 8 '14 at 8:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .