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

Marcus89

macrumors newbie
Original poster
Sep 16, 2009
5
0
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 :)
 
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 :)

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.
 
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.

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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.