g++: error trying to exec ‘cc1plus’

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.
Spread the word
del.icio.us Digg Furl Google StumbleUpon Technorati Windows Live Yahoo! Help



















Leave a Comment