ambiot / ambd_matter

AmebaD public SDK to support Matter project
https://www.amebaiot.com/en/
10 stars 10 forks source link

How to reference a static library #129

Open cheng5230 opened 1 month ago

cheng5230 commented 1 month ago

How to reference a static library (lib_cttpc. a) in Matter's project (light)

Added libhttpc. a library in the makefile of project hp image Compiling matter light project error: httpc_cn_connect not found image

xshuqun commented 1 month ago

Did you try adding the header into the source file you had utilize httpc API? #include <httpc/httpc.h>

cheng5230 commented 1 month ago

Did you try adding the header into the source file you had utilize httpc API? #include <httpc/httpc.h> I have added the httpc API, but still receive an error message stating that I cannot find the httpc related API interface image

xshuqun commented 1 month ago

I don't see any issue when using httpc api on v1.3-release tag. You can check my changes below: example_matter_light.txt