New Component creation for project
Posted: Mon Sep 24, 2018 10:37 am
Hi
I have below project directories
Project Folder
-components
--sensors
---sensor.c
---component.mk
---include
----sensor.h
-main
--main.c
--component.mk
-Makefile
-sdkconfig
My component.mk file in sensor folder contents are like this
COMPONENT_ADD_INCLUDEDIRS := include
I included the header file sensor.h in main.c
The component got successfully and .a static library got generated in build/sensors directory but the functions didn't get linked to the main application and i am receiving undefined reference to errors.
Could you help on this.
Thanks,
Karim
I have below project directories
Project Folder
-components
--sensors
---sensor.c
---component.mk
---include
----sensor.h
-main
--main.c
--component.mk
-Makefile
-sdkconfig
My component.mk file in sensor folder contents are like this
COMPONENT_ADD_INCLUDEDIRS := include
I included the header file sensor.h in main.c
The component got successfully and .a static library got generated in build/sensors directory but the functions didn't get linked to the main application and i am receiving undefined reference to errors.
Could you help on this.
Thanks,
Karim