使用unordered_map编译报#error This file requires compiler and library support......

原创 2014年09月20日 12:37:19

今天把几个map替换成unordered_map后编译出现了如下错误信息:

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


提示上加上-std=c++0x或者-std=gnu++0x选项。加上就解决了~

版权声明:本文为博主原创文章,未经博主允许不得转载。

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. This support is...

使用unordered_map编译报#error This file requires compiler and library support

最近常用到unordered_map,但是我发现这个库在vc6中不能用,无赖只好换成vs2012,测试可以用。然而,我在linux下用g++编译时,出现了以下错误: In file included...

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

CmakeLists.txt 中添如下代码就OK, include(CheckCXXCompilerFlag) CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPIL...

c++0x_warning.h:31:2: error

g++编译 In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/ci...

CodeBlocks问题解决

问题一:使用unordered_map错误错误描述包含头文件#include 后编译器报错,错误信息为: This file requires compiler and library suppo...

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. This support is...
  • xbcReal
  • xbcReal
  • 2017年03月19日 20:24
  • 5808

#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 standard. This suppo...
  • xiat5
  • xiat5
  • 2016年02月28日 12:03
  • 6750

编译报#error This file requires compiler and library support......

[error] This file requires compiler and library support for the upcoming ISO C++ standard, C++0x....

Eclipse4.5.1 Mars C++11 编译出错解决方法

/usr/include/c++/4.8.2/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and libr...
  • dounine
  • dounine
  • 2016年07月11日 16:42
  • 2190

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

CmakeLists.txt 中添如下代码就OK, include(CheckCXXCompilerFlag) CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPIL...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:使用unordered_map编译报#error This file requires compiler and library support......
举报原因:
原因补充:

(最多只允许输入30个字)