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

来源:互联网 发布:仓库规划设计软件 编辑:程序博客网 时间:2024/06/05 06:38
Linux系统下解 决make时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.

 #error This file requires compiler and library support \

的方法:

      在CMakeLists.txt文件里的上方添加

SET( CMAKE_CXX_FLAGS "-std=c++11 -O3")

可以解决这个问题

阅读全文
0 0