报错现象:
#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")