ESP-IDF Extension C++17 Compliance
Posted: Sun Dec 19, 2021 2:54 pm
I am struggling with the compiler of the ESP_IDF extension of VSCode.
My c_cpp_properties.json is plain-vanilla:
"compilerPath": "C:\\Users\\roland\\.espressif\\tools\\xtensa-esp32-elf\\esp-2020r3-8.4.0\\xtensa-esp32-elf\\bin\\xtensa-esp32-elf-gcc.exe",
"cStandard": "c11",
"cppStandard": "c++17", ...
but I am getting errors of the sort
"body of 'constexpr' function 'constexpr uint32_t bits::swap(uint32_t)' not a return-statement"
which should not appear anymore after C++11.
Pro info : I installed the platformio extension (the source code is a demo on platformio) and it compiles without any problem with its GNU C++14 compiler.
Can anybody help? Am I missing a setting ? Thanks in advance!
My c_cpp_properties.json is plain-vanilla:
"compilerPath": "C:\\Users\\roland\\.espressif\\tools\\xtensa-esp32-elf\\esp-2020r3-8.4.0\\xtensa-esp32-elf\\bin\\xtensa-esp32-elf-gcc.exe",
"cStandard": "c11",
"cppStandard": "c++17", ...
but I am getting errors of the sort
"body of 'constexpr' function 'constexpr uint32_t bits::swap(uint32_t)' not a return-statement"
which should not appear anymore after C++11.
Pro info : I installed the platformio extension (the source code is a demo on platformio) and it compiles without any problem with its GNU C++14 compiler.
Can anybody help? Am I missing a setting ? Thanks in advance!