I used to be able to use g++ from the terminal to compile c++ programs, but now when I try to use it, I get
-bash: g++: command not found
General advice on the internet was to install XCode, but I already have XCode installed. I'm not sure what has changed since being able to use it. I'm running OSX 10.6.8 and XCode 3.2.4.