Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

off in the wood

macrumors regular
Original poster
Sep 12, 2007
105
0
I am currently taking a programing class for school and need to know how to run c++ or equivelent on my mac. In class we are using microsoft visual. I asked the Prof. if it is possible to do C++ on my mac, she said that she knew of g++. Anyway, my question is mainly where/how do I run this on my computer? I read on here that this is possible to do on a mac and also comes free with OSX, but how do I start it? So if anyone could tell me exactly how to set it up so that I can start programing... that would be great! Also, if you could describe how to do this in layman's terms... that would also be great!

Thanks for anyone who can show me the way

-Rich-
 

thealtered7

macrumors newbie
Sep 11, 2007
8
0
Denver
The OS X system disks that came with your computer should have on the first one an installation of Apple's Xcode development suite. It installs like any other well designed program and will give you a subset of the GNU compiler suite as well as numerous other useful applications, not to mention the Xcode IDE. You'll be happy to note that the Xcode installation will automatically configure the necessary bash PATH for command line compilation.
Using the actual compiler is another issue. You'll want to check out a tutorial on command line compiling steps using the GNU compiler suite. Just google it. Despite the fact that Xcode, and VS for that matter, have automated compilation configuration, you'll benefit from learning command line compilation techniques.
Depending on how long ago you purchased your computer, you'll probably want to check to see if any Xcode software updates have been released in the meantime.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.