Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 4 of 4

Thread: c++17

  1. #1



    Will the teensy platform support c++17? (from within the Arduino ide)

  2. #2
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Found this:
    C++17 Support in GCC
    GCC has almost full support for the latest revision of the C++ standard, which was published in 2017. Some library features are missing or incomplete, as described in the library documentation.
    C++17 features are available as part of "mainline" GCC in the trunk of GCC's repository and in GCC 5 and later. To enable C++17 support, add the command-line parameter -std=c++17 to your g++ command line. Or, to enable GNU extensions in addition to C++17 features, add -std=gnu++17.
    As far as Teensy ggc version - this was just posted:
    Quote Originally Posted by MichaelMeissner View Post
    The ARM compiler shipped with Arduino 1.8.10 is version 5.4.1 which was released in June 2016. The AVR compiler is 7.3.0 which was released in January 2018. The current GCC compiler is 9.2.0 which was released in August 2019. GCC 10 will likely be released in a couple of months (we are currently at stage3 of development). As GCC 10 comes out, the GCC 7.x branch will be frozen (GCC 5.x was frozen much earlier).

  3. #3
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Today we use C++14, and probably will stay with it for at least another year.

    We're probably due for a toolchain upgrade "soon". But that's not going to happen while we're in the middle of so much activity on the code lib and porting libs and adding new features to Teensy 4.

  4. #4
    thank you!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts