I'm on a MacBook running mac osx 10.4.11, I have Xcode, gnu, and I'm using the terminal command: g++ -o helloworld helloworld.c
I get the error:
g++: error trying to exec 'cc1plus': execvp: No such file or directory
What does this error mean?
It means that your shell could find the g++ frontend of the GNU compiler but that
frontend couldn't find cc1plus, the actual C++ compiler; it could find cpp, the
preprocessor, it already ran. Go to the directory where the g++ frontend is stored
(type: "which g++") and look for the file cc1plus in that same directory or a sub-
directory thereof. If it isn't there your compiler installation is broken; if it is there
some configuration of it went berzerk.
Are you able to compile ordinary C files using 'gcc'?
kind regards,
Jos