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

undefined reference to `__stop_sdh_ble_observers' during linking.

Hi,
I created a simple project using the nRF52 SDK, to which I later wanted to add BLE support. I used the ble_app_blinky example from the SDK as my starting point.

The example works if I open it and run it from its SDK folder. So I added the code to our folder. I made sure to add all the files, the user Include directories in the Preprocessor and the sdk_config.

However when I try to build it, I get the following error during linking:
Output/hava Release/Obj/nrf_sdh_ble.o:C:\Users\Zafer\repos\ses\components\softdevice\common/nrf_sdh_ble.c:64: undefined reference to `__start_sdh_ble_observers'
Output/hava Release/Obj/nrf_sdh_ble.o:(.rodata.sdh_ble_observers+0x4): undefined reference to `__stop_sdh_ble_observers'

The projects builds fine if I open it from the SDK folder.

Any idea what could be causing it?

Thanks.

Parents Reply Children
Related