Ubuntu安装g++

sudo apt-get install make gcc g++
 再装上函数手册
 sudo apt-get install manpages-dev

或者采用
sudo apt-get install build-essential