Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Undefined reference to function even though i have included it

Hi!

I'm trying to merge the flash_fds example with the ble_app_uart, and the twi example. My intention is to read a value from TWI, store it in flash and then send the value by BLE to the toolbox app. I started out with merging the two example ble_app_uart and flash_fds but i'm having trouble with gcc replying that i have undefined functions even though i have included them both in the makefile and the source files. I merged the two examples by the copying the ble_app_uart example to the main of the flash_fds and including the libraries from the makefile of the ble_app onto the flash_fds example. I see that both functions uses a eww file that again uses a ewp file. I have not included the ble_app_uart.eww file to the flash_fds project. I'm using gcc on ubuntu.

The problem is that i get a bunch of undefined references to functions that i have included by including the header files and the path in the makefile. I get a : "collect2: error: ld returned 1 exit status"

Related