Arduino 1.0.6:如何更改编译器标志? [英] Arduino 1.0.6: How to change compiler flag?

查看:227
本文介绍了Arduino 1.0.6:如何更改编译器标志?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用Arduino 1.0.6 IDE进行项目,它似乎不接受C ++ 11 std :: array.是否可以更改编译器标志来使其正常工作?

I'm currently working on a project using Arduino 1.0.6 IDE and it does not seem to accept C++ 11 std::array. Is it possible to change the compiler flag to make this work?

推荐答案

使用IDE很难做到这一点.

Using the IDE is very difficult to do that.

我建议您使用 Sudar出色的Arduino Makefile进入完整命令行 .

I would advise you to go full command line by using Sudar's great Arduino Makefile.

这样,您将可以根据自己的喜好自定义编译器标志.

This way you'll be able to customise the compiler flags to your liking.

我还创建了裸Arduino项目,以帮助您入门.该文档涵盖了很多方面,从安装最新的avr-gcc工具链到如何使用存储库,编译和上传代码.

I've also created the Bare Arduino Project to help you get started. The documentation covers a lot points, from installing the latest avr-gcc toolchain to how to use the repository, compile and upload your code.

如果您发现缺少的东西,请随时在Github上填写问题,以便我进行修复:)

If you find something missing, please, feel free to fill an issue on Github so that I can fix it :)

希望这会有所帮助! :)

Hope this helps! :)

这篇关于Arduino 1.0.6:如何更改编译器标志?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆