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

GCC_CAST_CPP redefined

Hello in sdk14.1 in examples/ble_peripheral/ble_app_buttonless_dfu i get this error when compiling with g++:

make[1]: Entering directory '/home/work/software/nordic/sdk/nRF5_SDK_14.1.0_1dda907/examples/ble_peripheral/ble_app_buttonless_dfu/pca10040/s132/armgcc'
Compiling file: main.cpp
In file included from ../../../../../../components/softdevice/s132/headers/ble_gap.h:51:0,
                 from ../../../../../../components/libraries/bootloader/dfu/nrf_dfu_svci.h:56,
                 from ../../../main.cpp:56:
../../../../../../components/softdevice/s132/headers/nrf_svc.h:57:0: error: "GCC_CAST_CPP" redefined [-Werror]
 #define GCC_CAST_CPP (uint16_t)
 
In file included from ../../../../../../components/libraries/bootloader/dfu/nrf_dfu_svci.h:54:0,
                 from ../../../main.cpp:56:
../../../../../../components/libraries/svc/nrf_svci.h:67:0: note: this is the location of the previous definition
     #define GCC_CAST_CPP (uint8_t)
 
../../../main.cpp:55:1: error: expected unqualified-id before '}' token
 }
 ^
../../../main.cpp:55:1: error: expected declaration before '}' token
cc1plus: all warnings being treated as errors
make[1]: *** [../../../../../../components/toolchain/gcc/Makefile.common:276: _build/nrf52832_xxaa/main.cpp.o] Error 1
make[1]: Leaving directory '/home/work/software/nordic/sdk/nRF5_SDK_14.1.0_1dda907/examples/ble_peripheral/ble_app_buttonless_dfu/pca10040/s132/armgcc'
make: *** [Makefile:24: debug] Error 2

is this a bug?

Parents Reply Children
No Data
Related