I am trying to use the C++ utils here: https://github.com/nkolban/esp32-snippets/tree/master/cpp_utils
I’ve cloned the repo and added the component by adding the cpp_utils path to the SRCDIRS in the makefile.
I am using the hello_world project so I haven’t added anything extra yet.
If I include BLEDevice.h it asks me to add the following directories to the main project component file:
COMPONENT_PRIV_INCLUDEDIRS += ../../../../../../../SysGCC/esp32/opt/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0 ../../../../../../../SysGCC/esp32/opt/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf
However, I get compile errors from STL header files in these directories:
Error attributes should be specified before the declarator in a function definition HelloWorld C:\SysGCC\esp32\opt\xtensa-esp32-elf\xtensa-esp32-elf\include\c++\5.2.0\backward\binders.h 63
Error attributes should be specified before the declarator in a function definition HelloWorld C:\SysGCC\esp32\opt\xtensa-esp32-elf\xtensa-esp32-elf\include\c++\5.2.0\bits\allocator.h 52
There are a lot more errors but they are related to referencing the STL