I want to include GetWifiAPs.c and GetWifiAPs.h files, which I developed by myself, in my project.
How do you include them?
I'm using SEGGER Embedded Studio.
I include header file(.h) in the following path and I think It is successful.
/Users/username/Documents/nRF9160/ncs/nrf/include
<main.c> #include "GetWifiAPs.h"
However, when I build and run the project. an error happens.
1> Archiving ‘libkernel.a’ Building ‘zephyr/zephyr_prebuilt.elf’ from solution ‘build’ in configuration ‘Common’ 1> Compiling ‘empty_file.c’ 1> Linking ‘zephyr_prebuilt.elf’ 1> Memory region Used Size Region Size %age Used 1> FLASH: 14628 B 192 KB 7.44% 1> SRAM: 5384 B 64 KB 8.22% 1> IDT_LIST: 104 B 2 KB 5.08% 1> libapp.a(main.c.obj): In function `main': 1> /Users/username/Documents/nRF9160/ncs/nrf/samples/nrf9160/uart_2/build/../src/main.c:127: undefined reference to `GetWifiAPs' 1> collect2: error: ld returned 1 exit status Build failed