c++ questions

Discussion in 'Mac Programming' started by off in the wood, Sep 12, 2007.

  1. off in the wood macrumors regular

    Sep 12, 2007
    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

  2. thealtered7 macrumors newbie

    Sep 11, 2007
    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.
  3. coastertux macrumors regular

    Jul 17, 2006

Share This Page