How to use c++11 to program the Arduino?

前端 未结 6 1436
清酒与你
清酒与你 2020-12-04 17:43

How can I use c++11 when programming the Arduino? I would be fine using either the Arduino IDE or another environment. I am most interested in the core language

6条回答
  •  囚心锁ツ
    2020-12-04 18:15

    I use Ino and this worked:

    ino build -cppflags="-std=c++0x"

    This generated a hex file at least 15k in size (that's with optimizations turned on), compared to about 5k for the standard build, which is a consideration for a poor little Atmega328. Might be okay for one of the microcontrollers with a lot more program space.

提交回复
热议问题