Installing c++/g++ on Mac OS X

Disclaimer: This page is being maintained mainly for my students. Use these instructions at your own risk. There is no warranty in any form or shape whatsoever!. There is no guarantee that these instructions are up-to-date. With that understood you may continue with the rest of this page if you choose to accept these terms.

This page was last updated on August 20, 2009.

Search for xcode312_2621_developerdvd.dmg on the Internet and install it on your Mac. Once your install it, you can compile and run a C++ program, say hello.cpp as follows:

  > g++ -g hello.cpp -o hello -lm

  > hello    or ./hello if ./ is not included in PATH

Maintained by Art Lee (alee at cmc dot edu).
Last modified . . .