In trying to get g++ to work in terminal I ran a command which I have now learned is outdated.
I think this is why running g++ in terminal returns an error but I am unsure.
If I try to run any .cpp in terminal I get the error message:
xcrun: Error: failed to exec real xcrun. (No such file or directory)
I have xcode installed and have installed command line tools. However after doing so, I ran the command below:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/
What have I done, and what should I do?