I ran into a similar problem a few years ago, but it's reappeared.
I'm trying to use errno in my app, but it's coming up undefined. I also notice that I'm getting a lot of errors in this file:
~/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.4.0/xtensa-esp32-elf/no-rtti/bits/error_constants.h
regarding the various error constants (eg EAFNOSUPPORT) being undefined.
Did I find my way to the wrong include path(s)? This is the relevant portion of my CMakeLists.txt file:
Code: Select all
INCLUDE_DIRS
"."
"${IDF_PATH}/components"
"${IDF_PATH}/components/driver/include/driver"
"${IDF_PATH}/components/esp_wifi/include"
"${IDF_PATH}/components/freertos/include/freertos"
"${IDF_PATH}/components/hal/include/hal"
"${IDF_PATH}/components/lwip/"
"${IDF_PATH}/components/lwip/lwip/src/include/lwip"
"${IDF_PATH}/components/mbedtls/esp_crt_bundle/include/"
Thanks for any ideas...
EDIT: when I try to follow errno in the IDE, I get to this file:
.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.4.0/cerrno
Am I having this problem because I'm not correctly handling the mix of C and C++ files in my application?
Any help would be GREATLY appreciated.
EDIT 2: after some experimenting, I've reduced the errors to one file:
~/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.4.0/ext/string_conversions.h
Am I even supposed to be using this file? I have no references to directories within the toolchain in my configuration file.