PDA

View Full Version : C++ Compiler Problem



bncre
9th December 2014, 07:46 PM
I have c++ programs that I have been compiling in Fedora 17.

I recently upgraded to Fedora 20 and installed the development tools. Now when I try to compile the program using the following:

gcc -lm source.cpp

I get the following error

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

Does anybody know what this means, and how do I fix it?

lightman47
9th December 2014, 07:55 PM
Googling that message I got a number of hits - this was one:

http://www.unixmen.com/fix-gcc-error-trying-exec-cc1plus-execvp-file-directory-fedora/

Don't know if it helps ...

Steve80289
9th December 2014, 07:57 PM
Looks like someone had a similar problem here:

http://stackoverflow.com/questions/11912878/gcc-error-gcc-error-trying-to-exec-cc1-execvp-no-such-file-or-directory

bncre
9th December 2014, 08:35 PM
lightman47 and Steve80289:

Thank you very much for your help. I installed gcc-c++ per lightman47's link, and the problem cleared up.