# What version of C++ does the latest Particle firmware use/support?

**URL:** <https://community.particle.io/t/what-version-of-c-does-the-latest-particle-firmware-use-support/53774>\
**Category:** Firmware\
**Created:** [December 13, 2019, 5:34pm UTC](https://community.particle.io/t/what-version-of-c-does-the-latest-particle-firmware-use-support/53774 "2019-12-13T17:34:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![risingtiger](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/risingtiger/32/20707_2.png) [@risingtiger](https://community.particle.io/u/risingtiger)\
**Post date:** [December 13, 2019, 5:34pm UTC](https://community.particle.io/t/what-version-of-c-does-the-latest-particle-firmware-use-support/53774/1 "2019-12-13T17:34:31Z")

</div>

What version of C++ does the latest Particle firmware (1.4.x) use/support? I know it at least supports c++11, but what about newer versions like 14? I’ve searched quite a bit looking for this answer, but it seems to not be documented anywhere.

---

<div class="post-metadata">

**Author:** ![emdash](https://avatars.discourse-cdn.com/v4/letter/e/9d8465/32.png) [@emdash](https://community.particle.io/u/emdash)\
**Post date:** [December 13, 2019, 7:10pm UTC](https://community.particle.io/t/what-version-of-c-does-the-latest-particle-firmware-use-support/53774/2 "2019-12-13T19:10:15Z")

</div>

~~I see `gnu++11` in the full build output~~ , which lets you inspect the full compiler command line. Keep in mind they are using a specific GCC 5.3 embedded arm tool-chain.

Edit: In `device-os/build/lang-std.mk` I see `CPPFLAGSS += std=gnu++14` and `CONLYFLAGS += -std=gnu11`.

What that means is it’s basically ~~C++11~~ C++14, plus some gnu-specific extensions and perhaps some features from newer C++, and _C11 plus gnu extensions for C source files_

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [December 13, 2019, 8:45pm UTC](https://community.particle.io/t/what-version-of-c-does-the-latest-particle-firmware-use-support/53774/3 "2019-12-13T20:45:27Z")

</div>

This is touching on this PR from back in April which was merged in May into v1.2.1

> <https://github.com/particle-iot/device-os/pull/1757>

  
Referenced in the [OS Updates Thread](https://community.particle.io/t/particle-device-os-updates-thread/14378/87)

---

<div class="post-metadata">

**Author:** ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)\
**Post date:** [December 13, 2019, 9:45pm UTC](https://community.particle.io/t/what-version-of-c-does-the-latest-particle-firmware-use-support/53774/4 "2019-12-13T21:45:26Z")

</div>

Correct. It was previously C++11, but now it’s C++14 with Device OS 1.2.1 and later.

[https://docs.particle.io/reference/device-os/firmware/#language-syntax](https://docs.particle.io/reference/device-os/firmware/#language-syntax)

Also, gcc-arm compiler will be upgraded from 5.3.1 to 8.3.1 soon, as well. This will only be for targeting new versions of Device OS. Older versions will continue to use 5.3.1.

---

<div class="post-metadata">

**Author:** ![emdash](https://avatars.discourse-cdn.com/v4/letter/e/9d8465/32.png) [@emdash](https://community.particle.io/u/emdash)\
**Post date:** [December 13, 2019, 9:51pm UTC](https://community.particle.io/t/what-version-of-c-does-the-latest-particle-firmware-use-support/53774/5 "2019-12-13T21:51:05Z")

</div>

Do you plan to enable (or allow enabling) more recent C++ standards after the tool-chain update?

---

<div class="post-metadata">

**Author:** ![risingtiger](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/risingtiger/32/20707_2.png) [@risingtiger](https://community.particle.io/u/risingtiger)\
**Post date:** [December 13, 2019, 10:06pm UTC](https://community.particle.io/t/what-version-of-c-does-the-latest-particle-firmware-use-support/53774/6 "2019-12-13T22:06:34Z")

</div>

Good to know. Thank you.
