I use
make code
and he finds the compiler, compiles code.cpp and leaves the output in the code. And he tells me the name of the compiler ... (this is g ++).
If you type "g ++", will you find the old alias?
Do you have / usr / bin in your path?
If you do this and / usr / bin / g ++ is not found, check that you have downloaded not only Xcode, but also command line utilities, which are now a separate download on the developer's page.
source share