Nathan Campos
Nathan Campos

Reputation: 29507

Error When Compiling C++ File In GCC

I'm using Linux Ubuntu Intrepid Ibex and using as compiler the gcc, but when I try to compile a C++ project file, the compiler give me this error:

ubuntu@ubuntu-laptop:~/C++$ gcc ClientFile.cpp
gcc: error trying to exec 'cc1plus': execvp: No such file or directory

What is wrong?

Upvotes: 1

Views: 8074

Answers (2)

Mehrdad Afshari
Mehrdad Afshari

Reputation: 422172

Do you have the build suite installed?

sudo apt-get --reinstall install build-essential

and compile C++ code with g++ command, not gcc.

Upvotes: 10

Paul Nathan
Paul Nathan

Reputation: 40319

Well, your gcc install is damaged, looks like.

Upvotes: 3

Related Questions