This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

undefined reference to `ble_db_discovery_init'

Hi there,

I am working on programming the CTS ble service on my code. In order to do that I also have to include db discovery.

#include "ble_cts_c.h"
#include "ble_db_discovery.h"

However, when I call "ble_db_discovery_init" it is still undefined as well as other ble_db_discovery.h related functions.

undefined reference to ble_db_discovery_init undefined reference to ble_db_discovery_evt_register undefined reference to ble_db_discovery_start

AT THE BLE_DB_INIT ERROR LOCATION:

static void db_discovery_init(void)
{
    ret_code_t err_code = ble_db_discovery_init(db_disc_handler);
    APP_ERROR_CHECK(err_code);
}
Related