STM32CubeWB icon indicating copy to clipboard operation
STM32CubeWB copied to clipboard

ble_gatt_aci.h missing C++ support

Open raitraak-rrk opened this issue 1 year ago • 4 comments

Middlewares/ST/STM32_WPAN/ble/core/auto/ble_hal_aci.h is missing C++ support. Many other STM32_WPAN files look the same.

#ifdef __cplusplus extern "C" { #endif

raitraak-rrk avatar Jul 14 '24 13:07 raitraak-rrk

ST Internal Reference: 186693

RJMSTM avatar Jul 16 '24 14:07 RJMSTM

Hello,

Thank you for your contribution. You need to include "Middlewares\ST\STM32_WPAN\ble\ble.h" before BLE_ACI.h.

Regards,

RJMSTM avatar Aug 07 '24 10:08 RJMSTM

Thanks. However, this seems more of a undocumented workaround rather than a fix.

raitraak-rrk avatar Aug 08 '24 10:08 raitraak-rrk

Hello,

A cleaner solution is to select the STM32_WPAN group in Middlewares and go in "Options" panel, "C/C++ Compiler" and select "Override inherited settings" and select C language.

Regards,

RJMSTM avatar Oct 02 '24 10:10 RJMSTM

There is no "Options" panel when using git repo directly.

raitraak-rrk avatar Nov 01 '24 02:11 raitraak-rrk