首页 > 编程语言 > 详细

"Your compiler does not have the necessary C++17 support!"的解决方案

时间:2021-07-07 12:39:14      阅读:330      评论:0      收藏:0      [点我收藏+]

 


执行命令:

yum install -y centos-release-scl
yum install devtoolset-8-gcc*

 

完成后执行:

# 切换当前会话中gcc版本为8
scl enable devtoolset-8 bash

或者:

# 直接替换旧的gcc
mv /usr/bin/gcc /usr/bin/gcc-4.8.5
ln -s /opt/rh/devtoolset-8/root/bin/gcc /usr/bin/gcc
mv /usr/bin/g++ /usr/bin/g++-4.8.5
ln -s /opt/rh/devtoolset-8/root/bin/g++ /usr/bin/g++

 

执行命令查看版本:

gcc -v

 

"Your compiler does not have the necessary C++17 support!"的解决方案

原文:https://www.cnblogs.com/XiaoMingBlingBling/p/14980450.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!