2015-09-07 158 views

回答

0

如果你只需要C++ 11可以使用下面的命令作为样本安装GCC的新版本/ G ++

sudo add-apt-repository ppa:ubuntu-toolchain-r/test 

sudo apt-get update 

sudo apt-get install gcc-5 g++-5 
sudo update-alternatives 
sudo update-alternatives --remove-all gcc 
sudo update-alternatives --remove-all g++ 
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 20 
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 20 
sudo update-alternatives --config gcc 
sudo update-alternatives --config g++ 
+0

感谢您的建议。但我想要mingw-w64。另一方面,我可以使用appveyor – wolfy1339