I have a linux computer with gcc. I can compile C programs, but when I try to compile C++ programs, I get the following error message:
error trying to exec 'cc1plus': execvp: No such file or directory
I don't understand what this error message means, or how to fix it. Any anon who could help me?
Install your C++ compiler correctly.
reinstall ubuntu
Install a distro that sucks less. Like Arch Linux or Gentoo.
Good luck!
use g++ not gcc idiot
Not if the C++ compiler backend isn't installed.
Google may be your friend in this situation.
>>6
"gcc can compile both"... by calling g++ when you screw up and pass it a C++ file. Same as gpc, g77, and so on.
Install g++.
>>6
Wrong. gcc is the gnu C compiler, which is a C compiler
You must have been thinking of GCC, the GNU Compiler Collection.
gcc ⊂ GCC
Your compiler is not properly installed.
on your Ubuntu machine, type
sudo apt-get install build-essential
that will install everything you need for basic development, including compiling your C++ code.
>>14 - Holier-than-thou sage-ing.
Check!
>>14
BUT, he hasn't properly installed his compiler!!! FFUUU--
Four sage in a row will bring death to this thread.