g++升级到7.3版本

root用户下

1.yum install centos-release-scl -y
2.yum install devtoolset-7 -y

以下命令添加到bashrc
source /opt/rh/devtoolset-7/enable

怎么添加?
1.vim ~/.bashrc
末尾加上source /opt/rh/devtoolset-7/enable
2.source ~/.bashrc
3.g++ -v查看版本

发布了78 篇原创文章 · 获赞 10 · 访问量 3844

猜你喜欢

转载自blog.csdn.net/weixin_44374280/article/details/100545416