Help: Error: active developer path

Hi, im a newbie trying to compile a simple "Hello World" program.
i have no idea what seems the problem here. i have this error.

g++ -Wall -fexceptions -g -c /Applications/Ctrial1/trial1/main.cpp -o obj/Debug/main.o
xcrun: error: active developer path ("/Volumes/Xcode 1/Xcode.app/Contents/Developer") does not exist, use `xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools (or see `man xcode-select`)


i already installed Xcode in mac, and i still have this problem.

THIS IS MY PROGRAM.

1
2
3
4
5
6
7
8
9
#include <iostream>

using namespace std;

int main()
{
    cout << "Hello world!" << endl;
    return 0;
}

Make sure "/Volumes/Xcode 1/Xcode.app/Contents/Developer" exists. If not, then perhaps that path is incorrect in your makefile.
thanks..
Topic archived. No new replies allowed.