C++ compiling issues

Discussion in 'Mac Programming' started by Marcus89, Sep 20, 2012.

  1. Marcus89 macrumors newbie

    Joined:
    Sep 16, 2009
    #1
    hello!

    I have been browsing through a couple of threads, but I have not found a good solution yet...

    my problem is that I cannot compile the C++ code i wrote my Xcode file.

    i have tried the g++ command, but the error i get is this: bash- g++ command does not exist,

    please help me :)
     
  2. gnasher729 macrumors P6

    gnasher729

    Joined:
    Nov 25, 2005
    #2
    1. Go to developer.apple.com, go to Mac Dev Center, then register for a free developer account.

    2. Find out what XCode version you need. If you run Mountain Lion, get the latest version from the App Store, otherwise search in the "Downloads" section for XCode and pick up the right one.

    3. Install XCode. Create a new project, choose the "command line tool" template, then choose "C++".

    You know have a project with a small program that you can run, and then you can modify it.
     
  3. Marcus89 thread starter macrumors newbie

    Joined:
    Sep 16, 2009
    #3
    Okay,

    I am registrered as an may dev, how would you know you have the right version? currently I am using the Xcode 3.2.5.
     

Share This Page