0

I have tried to compile a simple hello-world program hello.cpp and got the following message:

cpp: error trying to exec 'cc1plus': execvp: No such file or directory seems like missing file

from where do I download this file and where to I put it ?

thank's

1 Answers1

1

cc1plus is the actual c++ compiler. If it's missing, chances are you need to install the g++ package.

sudo apt install g++

alternatively, you may install a bunch of compilation tools with

sudo apt install build-essential

Also, to compile a file, run

g++ file.cc

not

cpp file.cc

cpp is the C Preprocessor, not the c++ compiler frontend.

N0rbert
  • 99,918
exore
  • 997
  • 6
  • 10