How can I enable cpp20 usage for Arduino framework code which uses the c++20 standard? Right now the latest I can get it to do is 2017 (what the __cplusplus macro reports). See attached image showing a c++20 feature which make it unable to compile.
I typically use PlatformIO in VSCode but am open to other solutions as well.
Using C++20 with ESP32S3
Re: Using C++20 with ESP32S3
Code: Select all
build_unflags = -std=gnu++11
build_flags =
-std=gnu++20
-
kondalkolipaka
- Espressif staff

- Posts: 269
- Joined: Wed Jul 17, 2019 5:26 pm
Re: Using C++20 with ESP32S3
Hello,
As you’ve asked for other solutions, you can also think about ESP-IDF for your development, and we have VSCode extension for it and it supports latest C++ version as well.
By default, ESP-IDF compiles C++ code with C++23 language standard with GNU extensions (-std=gnu++23).
https://docs.espressif.com/projects/esp ... e-standard
Thanks
As you’ve asked for other solutions, you can also think about ESP-IDF for your development, and we have VSCode extension for it and it supports latest C++ version as well.
By default, ESP-IDF compiles C++ code with C++23 language standard with GNU extensions (-std=gnu++23).
https://docs.espressif.com/projects/esp ... e-standard
Thanks
Who is online
Users browsing this forum: No registered users and 2 guests