LDF (in any mode that evaluates C/C++ Preprocessor conditional syntax) is not able to find a dependency when a header from that dependency is hidden under an ifdef guard and the macro that enables the include header file is located outside search paths (framework libraries, include and src folders) passed to CCONDITIONAL_SCANNER,
For example the CONFIG_ETH_ENABLED macro in the code below is set in the sdkconfig.h file which is located in the framework folder $PIO_PACKAGES/framework-arduinoespressif32/tools/sdk/esp32/dio_qspi/include.
Scanning dependencies...
No dependencies
Compiling .pio\build\esp32dev\src\main.cpp.o
src/main.cpp:25:10: fatal error: ETH.h: No such file or directory
Description of problem
LDF (in any mode that evaluates C/C++ Preprocessor conditional syntax) is not able to find a dependency when a header from that dependency is hidden under an
ifdef
guard and the macro that enables the include header file is located outside search paths (framework libraries,include
andsrc
folders) passed toCCONDITIONAL_SCANNER
,For example the
CONFIG_ETH_ENABLED
macro in the code below is set in thesdkconfig.h
file which is located in the framework folder$PIO_PACKAGES/framework-arduinoespressif32/tools/sdk/esp32/dio_qspi/include
.Steps to Reproduce
Compile the following code:
with the following configuration:
Actual Results
Expected Results