tags:

views:

303

answers:

3

I want to compile C++ code on MacOS X, using the g++ compiler. How do I install it?

+1  A: 

It comes with Xcode.

Ignacio Vazquez-Abrams
+6  A: 

That's the compiler that comes with Apple's XCode tools package. They've hacked on it a little, but basically it's just g++.

You can download XCode for free (well, mostly, you do have to sign up to become an ADC member, but that's free too) here: http://developer.apple.com/technology/xcode.html

Omnifarious
Add the download link from my answer, and I'll accept yours! :)
jmglov
@jmglov, *chuckle* Done! :-)
Omnifarious
+1  A: 

Download Xcode, which is free with an ADC online membership (also free):

http://developer.apple.com/technology/xcode.html

jmglov