g++: error trying to exec ‘cc1plus’

gnu c

I was trying to compile a .cpp (c++) code in Ubuntu Linux amd64 for desktop version (rather notebook version for me) and i encountered this error. I found out that there was no c++ compiler installed by default, so here’s what i did to fix the problem.

pearlyshell$: sudo apt-get install g++

After installing g++ including libstdc++ package, i was able to compile cpp code successfully.

pearlyshell$: g++ -o mycppfile mycppfile.cpp

The compilation went well without any errors at all on the compiler’s side.


Permalink • Print • Comment

Trackback uri

http://seoroot.com/blog/ubuntu-linux/g-error-trying-to-exec-cc1plus.html/trackback

Related Entries

Leave a Comment