c++ error: ‘XXX’ is not a member of ‘std’

本人编译运行slambook2/ch7中的代码 报错如下:

error: ‘XXX’ is not a member of ‘std’ 详情如下图:

error: ‘index_sequence’ is not a member of ‘std’.........

c++ error: ‘XXX’ is not a member of ‘std’_第1张图片

网上参考方案:CMakeLists.txt 添加 set(CMAKE_CXX_STANDARD 11) 
无果 想起来代码中调用的g2o库 Requirements C++14 compiler  故修改为14 (猜测)
本人亲测方案:CMakeLists.txt 添加 set(CMAKE_CXX_STANDARD 14)
不报之前的错误 但是orb_self编译失败 因为编译时没有设置 msse4
最终版::set(CMAKE_CXX_FLAGS "-std=c++14 -O2 ${SSE_FLAGS} -msse4") 具体如下图中间部分:

c++ error: ‘XXX’ is not a member of ‘std’_第2张图片

你可能感兴趣的:(#,c++,SLAM,linux,slambook2,ch7,not,a,member,of,index_sequence)