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

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

2017-12-12 10:54 585 查看
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")

可以解决这个问题
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  linux c语言
相关文章推荐