Hi folks,
Relatively new to the Teensy (specifically working with the 4.1), and I have been enjoying using it with PlatformIO (Arduino framework) so far.
I'm interested in using a lightweight header-only library (link for those interested) that requires C++20 support. Judging by the errors being thrown at me when trying to build (for instance, regarding the use of the 'requires' keyword) this isn't supported using my current platformio.ini setup (which I tried my hand at Frankensteining from various forum replies):
As a non-expert, I'm not sure what my best option is for moving forward here. Should I stick with PlatformIO? Is there a better environment / toolchain that will offer C++20 support?
Thanks in advance for any help! All the best.
Relatively new to the Teensy (specifically working with the 4.1), and I have been enjoying using it with PlatformIO (Arduino framework) so far.
I'm interested in using a lightweight header-only library (link for those interested) that requires C++20 support. Judging by the errors being thrown at me when trying to build (for instance, regarding the use of the 'requires' keyword) this isn't supported using my current platformio.ini setup (which I tried my hand at Frankensteining from various forum replies):
Code:
[env:teensy41]
platform = teensy
board = teensy41
framework = arduino
build_flags =
-std=gnu++2a
-Wall
-Wextra
-Werror
-Wno-error=unused-parameter
build_unflags =
-std=gnu++14 ; tried 20 as well...
As a non-expert, I'm not sure what my best option is for moving forward here. Should I stick with PlatformIO? Is there a better environment / toolchain that will offer C++20 support?
Thanks in advance for any help! All the best.