I have searched and I have received the same answer but I believe mine is different
I have Xcode (4.3.2) installed on my mac and when I try to compile my .cpp file it says “command not found” Any suggestions?
How I try to compile;
g++ -o program code.cpp
You need to install the “Command-Line Tools” package through the XCode “Downloads” preferences tab.