With the latest stable versions, there are no problems when using C++17, see What's the latest on using C++17? - #4 by maxgerhardt.
I don’t think using the newest platform code is a good idea here when you want to use the older fork stuff, as I remember it people were doing that in the time where Arduino-ESP32 was supported at 1.0.6 but 2.0.x came out and it wasn’t supported yet. So, a better choice should be platform = espressif32@3.5.0
in accordance to the releases.
This seems to be coming from the PlatformIO core. If you have a working machine, open a CLI and ask for its pio --version
. In the non-working machine, also open the same CLI, and uses the pip
as designated by the pio system info
command to pip uninstall platformio
and pip install platformio=='yourversion'
.
When you use the regular new platform with the regular arduino core version 2.0.4, you already have ESP-IDF v4.4 as the base, see arduino-esp32/tools/sdk at 2.0.4 · espressif/arduino-esp32 · GitHub. What are the compile errors you get with this?