#error This file requires compiler and library support for the ISO C++ 2011错误解决办法
来源:互联网 发布:虚拟机网络配置 编辑:程序博客网 时间:2024/05/29 09:48
CmakeLists.txt 中添如下代码就OK,
include(CheckCXXCompilerFlag)CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X)if(COMPILER_SUPPORTS_CXX11) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") elseif(COMPILER_SUPPORTS_CXX0X) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")else() message(STATUS "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.")endif()
0 0
- #error This file requires compiler and library support for the ISO C++ 2011错误解决办法
- #error This file requires compiler and library support for the ISO C++ 2011错误解决办法
- 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 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......
- 使用unordered_map编译报#error This file requires compiler and library support......
- 使用unordered_map编译报#error This file requires compiler and library support
- C++中使用array报错 requires compiler and library surpport for the ISO c++ 2011 standard
- 【Android】Error:(32, 2) error: #error ....support for the ISO C++...
- 安装vs2008中文时出现错误Write error in the file VS2008TeamSuite90DayTrialCHSX1429243.iso. Probably the disk is full 的解决办法
- quartusII 破解后运行仿真出现如下错误的解决办法 Error: Current license file does not support the EP1C6Q240C8 device
- CentOS安装Nginx 报错“configure: error: the HTTP rewrite module requires the PCRE library”解决办法
- checking for C compiler default output file name... configure: error: C compiler cannot create executables
- fatal error C1047: The object or library file "..."was created with an older compiler than
- Nginx编译安装错误error: the HTTP gzip module requires the zlib library
- ubuntu下安装nginx错误error: the HTTP rewrite module requires the PCRE library 解决方法
- [Android开发] RxJava2之路九
- MySQL 子查询、多表更新/删除、JOIN、无限级分类表
- dnspod如何关闭whois保护
- Android MediaCodec stuff
- vi/vim技巧总结
- #error This file requires compiler and library support for the ISO C++ 2011错误解决办法
- 强化学习读书笔记
- 第三届蓝桥杯【省赛试题4】奇怪的比赛
- java基础学习之集合总结 九-10
- Ubuntu+Apache+PHP+Mysql环境搭建
- ionic -- 仿微信通讯录
- Running Dubbo On Spring Boot
- C++ 虚函数表解析
- JAVA List中剔除空元素(null)的方法