I use nrf connect SDK.
zephyr/include/zephyr/bluetooth/direction.h
is not include "extern "C"".
So, It's can not call from C++(cause link error.)
Any reason why?
I use nrf connect SDK.
zephyr/include/zephyr/bluetooth/direction.h
is not include "extern "C"".
So, It's can not call from C++(cause link error.)
Any reason why?
Hi,
Our libraries are generally designed for the standard C, so I guess this might be why you get the error.
Best Regards,
Priyanka
C++ directives
-------------------------------
#ifdef cplusplus
extern "C"
-------------------------------
Is it okay to add ?
C++ directives
-------------------------------
#ifdef cplusplus
extern "C"
-------------------------------
Is it okay to add ?
Hi,
Yes, it should be okay to add this
You can see the similar in gap.h . It's just missing in direction.h.
So you can likely submit a bug report here: https://github.com/zephyrproject-rtos/zephyr/issues/new/choose
-Priyanka
OK.
Thanks.