make: g++:命令未找到

装好Ubuntu后,第一次编译时会出现错误:

make: g++:命令未找到
make:离开目录“
/home/administrator/QtProject/HRD-build-desktop”
make:
*** [main.o] 错误 127
The process
"/usr/bin/make" exited with code %2.
Error
while building project HRD (target: Desktop)
When executing build step
'Make'

 

 

是因为没有安装编译器G++;

如何安装:

sudo apt-get install g++
posted @ 2010-12-16 16:28  SubmarineX  阅读(5466)  评论(0编辑  收藏  举报