Languages

Ubuntu 24.04 - gcc: error trying to exec 'cc1plus' : execvp: No such file or directory

8 points
Asked by:
martineau
1380

Any idea why I am not able to compile cpp file under Ubuntu?

By running:

gcc -o program program.cpp

I get error:

gcc: error trying to exec 'cc1plus' : execvp: No such file or directory

 

1 answer
10 points
Answered by:
martineau
1380

You use gcc compiler instead of  g++.

Install g++ using:

sudo apt-get install g++

To complie program.cpp file use:

g++ -o program program.cpp

 

0 comments Add comment
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join