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

undefined reference to ble_dis_init

Hi,

I am using SEGGER Embedded Studio 3.10h on OS X and SDK 12.1.0. I get this error

main.c:614: undefined reference to `ble_dis_init'

even though I have:

  1. added #include "ble_dis.h"

  2. added ble_dis.c to the project (trying in different folders too)

Where am I wrong?

Thx

Parents Reply
  • I originally started my project importing ble_app_template, then I largely changed it. I have tried to import the HRS example and it works fine. My opinion is that, for some reason, ble_dis.c is ignored during compilation because no code size is reported for it. I noticed that my project misses the nRF_BLE_Services folder, as far I understand it should be just a way of grouping files together, though. Any suggestion would be appreciated.

Children
No Data
Related