pp:30:28: error: expected ‘}’ before end of line;hpp:30:28: error: expected declaration before end of linehpp:40:94: error: expected initializer before ‘noexcept’

 

001、编译报错如下:

 

002、原因gcc版本低

当下版本为:

(base) [root@PC1 boost_1_86_0]# gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 

003、升级gcc版本到13

https://www.cnblogs.com/liujiaxin2018/p/17559725.html 

 

004、再次编译,没有问题。

 

 

posted @   小鲨鱼2018  阅读(23)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
点击右上角即可分享
微信分享提示