custom components and include files
Posted: Sun Mar 05, 2017 10:44 am
Hello!
I'm trying to develop a custom, reusable component as described in:
https://github.com/espressif/esp-idf/bl ... system.rst
my project has the following folder structure:
/ (project root)
/main <- source code of my "main"
/components
/components/component1 <- source code of my component
/components/component1/include <- include files
when I try to include the header file in my main program, I always get a No such file or directory error. During the compile process, I see that the compiler correcly compile and link my custom component.
Based on the documentation, the compiler should automatically add the "include" subfolder to the search path:
A sub-directory "include" will be added to the global include search path for all other components.
where am I wrong?
Thanks!
I'm trying to develop a custom, reusable component as described in:
https://github.com/espressif/esp-idf/bl ... system.rst
my project has the following folder structure:
/ (project root)
/main <- source code of my "main"
/components
/components/component1 <- source code of my component
/components/component1/include <- include files
when I try to include the header file in my main program, I always get a No such file or directory error. During the compile process, I see that the compiler correcly compile and link my custom component.
Based on the documentation, the compiler should automatically add the "include" subfolder to the search path:
A sub-directory "include" will be added to the global include search path for all other components.
where am I wrong?
Thanks!