更新源:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
安装:
sudo apt-get install g++-4.8
配置:
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8
更新源:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
安装:
sudo apt-get install g++-4.8
配置:
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8