您的位置:首页 > 编程语言 > C语言/C++

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

2017-03-19 20:24 1411 查看


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.

当使用CMAKE编译工程时,出现这个错误,解决办法:

在工程主目录的CMakeLists.txt中添加如下,可以编译成功:

SET( CMAKE_CXX_FLAGS "-std=c++11 -O3")
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐