ref:https://blog.youkuaiyun.com/zhizhengguan/article/details/109720174
安装g++7以上
默认yum安装的是4.8.5,如果想要g++7以上:
On Ubuntu try the following:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get update -y
sudo apt-get install g++-7 -y
On CentOS try the following:
sudo yum install centos-release-scl
sudo yum install devtoolset-7
scl enable devtoolset-7 bash
文章介绍了在Ubuntu系统中通过添加PPA源并使用apt-get命令,以及在CentOS系统中通过yum安装devtoolset-7来获取g++7及以上版本的详细步骤。
3805

被折叠的 条评论
为什么被折叠?



