I have two components and both have the include directory on their respective folders, nevertheless, the compilation is complaining about some implicit declaration of functions that I reference in one component but that are defined in another component.
The components look like this inside the components folder:
component_a
|
+--- include
| |
| +--- comp_a.h
+--- comp_a.c
+--- component.mk
component_b
|
+--- include
| |
| +--- comp_b.h
+--- comp_b.c
+--- component.mk
The problem seems to be on the fact that in comp_b.c I'm referencing a macro that is inside comp_a.h. And I'm doing this because the definitions in comp_a.h are meant to be used across all the components in the project. Both component.mk are empty by what I understood reading the documentation.
But the thing is that I read in the documentation:
So I'm expecting the definitions in comp_a.h to be visible to comp_b.c without any further modifications, is this right?COMPONENT_ADD_INCLUDEDIRS: Paths, relative to the component directory, which will be added to the include search path for all components in the project. Defaults to include if not overridden.
Or what do I need to do to avoid the error: implicit declaration of function error in compilation?