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

3 篇文章 0 订阅

[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.


解决方法

  1. Tools-》Compiler Options-》General-》Add the following commands when calling the compiler下输入:
    -std=c++11
    因为我报错是11,而不是该问题的0x,根据报错提示就行。当然,也可以输入:
    -std=gnu++11

  2. 编译器选择的问题,使用Dev c++的话,就按下面步骤将编译器调整为支持c++11即可步骤如下:
    工具-》编译选项-》代码生成/优化-》代码生成-》语言标准(选ISO C++11或者GNU C++11)-》确定
    回复

  • 14
    点赞
  • 19
    收藏
    觉得还不错? 一键收藏
  • 6
    评论
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值