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
  • Unfortunately, I cannot share the project at this stage. I have double checked:

    1. BLE_DIS_ENABLED 1, defined only once (sdk_config.h)
    2. ble_dis.h is in the project path (this was not there before, but it didn't get any compilation error!)
    3. ble_dis.c is in the nRF_BLE group, only one ble_s.c in the project. If I try to add another, SES gives a duplication warning. Removed and then added again.
    4. sdk_config.h included in the project Apparently everything is properly set, but I still get the error "undefined reference to `ble_dis_init'" Thx
Children
No Data
Related