Here’s what you need to do to install g++ and gcc on Mac OS X 10.8.
- Install XCode 4.4 from App Store.
- Start XCode.
- Run XCode > Preferences > Downloads > Components > Command Line Tools > Install.
Once done you should be able to run g++ and gcc from the command line as follows.
tron:~ dhruba$ g++ i686-apple-darwin11-llvm-g++-4.2: no input files
Apparently you can also download the command line package manually from ADC if you prefer (source).
Did this tip help you? Let me know in the comments!
{ 10 comments… read them below or add one }
thanks. helped
Timely answer. Thanks.
It worked!
Have been looking for this for some time.
Thanks.
Tx a lot !
I didnt find g++, even i had installed XCode.
With this way, it’s ok now !
Thanks. This worked like a charm.
Thanks a lot
Thanks!
easy to read, thx!
Perfect. Thank you!
Yes perfect and small answer
{ 4 trackbacks }