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 ++

你可能感兴趣的:(Make)