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")
相关文章推荐
- error: #error This file requires compiler and library support for the ISO C++ 2011 standard.
- error This file requires compiler and library support for the ISO C++ 2011 standard.
- #error This file requires compiler and library support for the upcoming ISO C++ standard, C++0x. Th
- #error This file requires compiler and library support for the ISO C++ 2011错误解决办法
- C++中使用array报错 requires compiler and library surpport for the ISO c++ 2011 standard
- C++中使用array报错 requires compiler and library surpport for the ISO c++ 2011 standard
- 编译报#error This file requires compiler and library support......
- error C4996 The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name
- 【Android】Error:(32, 2) error: #error ....support for the ISO C++...
- configure: error: You need a C++ compiler for C++ support.[系统缺少c++环境]
- [error]configure: error: You need a C++ compiler for C++ support.
- linux下安装安装pcre-8.32 configure: error: You need a C++ compiler for C++ support
- 编译trimesh2遇到问题:The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant names
- Linux系统下 安装nginx时出现提示的错误:configure: error: You need a C++ compiler for C++ support.
- [error]configure: error: You need a C++ compiler for C++ support.
- #("The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name:")
- The C++ Standard Library Extensions: A Tutorial and Reference
- Windows API, CRT, and the Standard C++ Library
- Android error:This template requires a build target API version of at least 14, and the current vers
- What Every Computer Programmer Should Know About Windows API, CRT, and the Standard C++ Library