报错现象:
#error This file requires compiler and library support for the ISO C++ 2011 standard.
This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
解决办法:
在依赖项g2o的CMakeLists.txt文件中指定c++编译器,如下
set(CMAKE_CXX_FLAGS "-std=c++11")
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)