#error This file requires compiler and library support for the ISO C++ 2011 standard. This support m

    科技2025-08-22  21

    用KDevelop调试 slam14讲的 3.7显示运动轨迹的程序时提示:

    error: #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.

    这是缺少对C++11标准的支持,在CMakeLists.txt中的声明CMake工程的语句之后添加:

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

    即可。

    Processed: 0.032, SQL: 8