#error This file requires compiler and library support for the ISO C++ 2011错误解决办法

来源:互联网 发布:单片机自动光控窗帘 编辑:程序博客网 时间:2024/06/05 04:52

出现

#error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

错误


修改CMakeLists.txt中,SET(CMAKE_CXX_FLAGS " ")为SET(CMAKE_CXX_FLAGS "-std=c++0x")

0 0
原创粉丝点击