Hello,
I have a 4.3 based project that has 1 main.c file and I've added 2 components, init.c/h and sensor.c/h. The include files are in separate headers in components\init and components\sensor folders. In the main program I can add init.h and sensor.h and get access to any of the code or defines in those headers. When I place a define as #define include "init.h" in the sensor.c file, I get a build error saying the folder does not exist.
Can anyone explain why I can include these header files into main.c but not into each other? I added the components with New>ESP IDF Components so I'm not sure how I can include these header files into something other than main.c.
Thanks
build issue
Re: build issue
Code: Select all
#define include "init.h" // no such monster thing
https://docs.espressif.com/projects/esp ... ystem.html
Re: build issue
That fixed it, thank you very much.
Who is online
Users browsing this forum: Google Adsense [Bot] and 135 guests