Compile C++14 and newer.
Posted: Thu Dec 10, 2020 7:04 am
Hi.
I assume that it's possible to build with different compiler options. I see that my code is compiled with -std=gnu++11 by default.
I found some comments about changing c++ version: https://github.com/espressif/esp-idf/is ... -423867023
But both
and
don't work in my case, I think. I still see -std=gnu++11 in ESP-IDF command prompt during compilation before component filenames and errors in that files.
What's wrong with my configuration?
ESP-IDF v4.1. ESP32 project.
I assume that it's possible to build with different compiler options. I see that my code is compiled with -std=gnu++11 by default.
I found some comments about changing c++ version: https://github.com/espressif/esp-idf/is ... -423867023
But both
Code: Select all
CFLAGS += -std=c++14
Code: Select all
component_compile_options(-std=c++14)
What's wrong with my configuration?
ESP-IDF v4.1. ESP32 project.