编译错误:This file requires compiler and ...

  • 原创
  • |
  • 浏览:1656
  • |
  • 更新:

新手使用codeblock写c++代码,编译程序时常会出现标题所示错误。这是由于c++程序中array数组的使用需要用ISO C++ 2011 standard的编译器,程序才能正常编译,下面步骤教大家如何正确设置编译器解决这一问题。

编译错误:This file requires compiler and ...

工具/原料

  • 硬件:电脑
  • 软件:codeblock

方法/步骤

  1. 1

    点击菜单栏中settings按钮,选择complier功能

    编译错误:This file requires compiler and ...
  2. 1
    此文章非法爬取自百度经验
  3. 2

    在compilersettings > compiler flags > Have g++ follow the C++11 ISO C++ language standard [-std=c++11]后面打勾

    编译错误:This file requires compiler and ...
  4. 3

    点击ok确认

    编译错误:This file requires compiler and ...
  5. 4

    rebuild程序

    编译错误:This file requires compiler and ...
    编译错误:This file requires compiler and ...
  6. 5

    运行程序

    编译错误:This file requires compiler and ...
  7. 6

    完美!

    编译错误:This file requires compiler and ...
    END
经验内容仅供参考,如果您需解决具体问题(尤其法律、医学等领域),建议您详细咨询相关领域专业人士。
作者声明:本篇经验系本人依照真实经历原创,未经许可,谢绝转载。
展开阅读全部