You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And I'll have to prepare custom config.h just to work around misleading subpath - mbedtls/check_config.h.
As far as I know the double quotes around an include path instructs the compiler to search from the current folder, which is meaningless in above mentioned cases, since there are no mbedtls/mbedtls/config.h or mbedtls/mbedtls/check_config.h.
Both these includes should be rewritten as
#include "config.h"
and
#include "check_config.h"
Optionally (to maintain backward comparibitliy) the same trick may be employed as it is done for config.h in md.h:
It sounds like an include path problem - I think you need to add the directory named "include" to your include path. I'm not sure how this is done in the Arduino environment, though (modifying platform.txt seems to be one option). When this is done, includes like #include "mbedtls/config.h" should work properly.
Same or similar issue with include paths was already reported earlier as #857, #1225 and #2360 , and partially addressed in #2319. I wonder why the approach had been changed since then.
Anyway resolving this path problem for Arduino IDE is tricky, and I doubt the approach with hacking platform.txt is a way to go, since this file is user-specific (or machine-specific), while mbedtls is project-specific (may be cloned as a subproject).
I tried to build part of the libary in Arduino IDE (for esp8266), and immediatey faced strange include path in
mbedtls/md.h
like:and then in standard
mbedtls/config.h
:Fortunately the first case is easy to tune, so I have to include the libary this way:
And I'll have to prepare custom
config.h
just to work around misleading subpath -mbedtls/check_config.h
.As far as I know the double quotes around an include path instructs the compiler to search from the current folder, which is meaningless in above mentioned cases, since there are no
mbedtls/mbedtls/config.h
ormbedtls/mbedtls/check_config.h
.Both these includes should be rewritten as
and
Optionally (to maintain backward comparibitliy) the same trick may be employed as it is done for
config.h
inmd.h
:The text was updated successfully, but these errors were encountered: