slambook2 icon indicating copy to clipboard operation
slambook2 copied to clipboard

ch3关于visualizeGeometry error: ‘decay_t’ is not a member of ‘std’; did you mean ‘decay’?

Open joey857 opened this issue 2 years ago • 3 comments

主要是因为现在系统已有的g++ gcc不支持c++11 ; 解决方案如下:

在CMakeLists中添加c++ 11标准支持

set( CMAKE_CXX_FLAGS "-std=c++14" )

joey857 avatar Apr 29 '22 08:04 joey857

Added this to all the sub-folders that has a CMakeLists.txt and it works.

Genozen avatar May 15 '23 02:05 Genozen

我添加了c++14支持仍然报这个错 是pagolin版本的原因吗

Rosa712 avatar Sep 18 '23 12:09 Rosa712

我添加了c++14支持仍然报这个错 是pagolin版本的原因吗

一个是需要改成C++14,还有就是GCC版本至少是4.9以上(完全可以是最新的),再者 Pagolin版本在 slambook2/3rdparty/Pangolin 里直接编译就好了,不要纠结其他版本

jujimeizuo avatar Oct 09 '23 09:10 jujimeizuo