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 [functions]" errors even though I have included the relevant H files.

I am trying to use some BLE functions that are currently defined and declared in my package (I checked).

I included the H files for all of them, and I am not getting any "Could not find file or directory" errors.

When I click on "Go to declaration" on a function, it takes me to its declaration inside an H file.

When I click on "Go to definition" though, I get "symbol not found."

When I compile I get linker errors such as: "Undefined reference to function 'nrf_ble_gatt_init'"

I have a feeling the length of the path name might affect things. I shortened the name of my SDK and a third of my errors disappeared.

Any help is appreciated!

Parents Reply Children
No Data
Related