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、再次编译,没有问题。