I am migrating my project to C++. Everything in the SDK works so far except NRF_BLE_GATT_DEF(). This returns the error C++ requires a type specifier for all declarations. Is there a workaround?
I am migrating my project to C++. Everything in the SDK works so far except NRF_BLE_GATT_DEF(). This returns the error C++ requires a type specifier for all declarations. Is there a workaround?
Hi Nick,
It is a known issue that the macros used in the SDK are not well supported by C++. Our SDK is written to support C and some of the coding method is not well supported for C++. I will however ask around internally and will get back to you.
Kind Regards,
Swathy
Understood. All other modules seem to work with C++ except usb_cdc_acm. This thread might help those in the future going down this path. It is a bit heavy handed modifying the SDK headers. It would be great it there was a cleaner fix to this issue.