This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to add library to a SDK example, in Segger embedded studio

Hi DevZone,

I am trying to add a 3rd party library (consisting one c file and 2 header files) into a SDK example in Segger embedded studio. 

I don't know the exact procedures to do this, what I did is

1) add the c file into the nRF_Libraries by adding existing file. 

2) then I want to add header files as the dependencies file of the c file, but I could not find how to do this...

Could you please tell how to add a 3rd party library into SDK example? 

Best regards 

Parents
  • Hi, a bit late reply :) , but I had the same problem also. Solved by adding root folder of xxx.c file's folder (arranged properly folders in "User Include Directories"). Then all .h files were included below xxx.c file at explorer "xxx.c -> Dependencies" folder. Then, to resolve xxx.h not found error at xxx.c, added xxx.h file at "Preprocessor -> Include Files" (have chosen "Private Configurations -> Common).

Reply
  • Hi, a bit late reply :) , but I had the same problem also. Solved by adding root folder of xxx.c file's folder (arranged properly folders in "User Include Directories"). Then all .h files were included below xxx.c file at explorer "xxx.c -> Dependencies" folder. Then, to resolve xxx.h not found error at xxx.c, added xxx.h file at "Preprocessor -> Include Files" (have chosen "Private Configurations -> Common).

Children
No Data
Related