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

SES Compiling Blinky with GNU++11

Hi,

I'm trying to include a library written in C++ which requires at least GNU++11. Unfortunately if I switch the C++ compiler in SES I get the following error:

2> In file included from ../nrf_SDK/components/ble/common/ble_srv_common.h:54,
2>                  from /Users/bernerj/Documents/SEGGER Embedded Studio for ARM Projects/ses-food-sensor/Application/main.cpp:54:
2> ../nrf_SDK/components/libraries/util/app_util.h:216:55: error: expected constructor, destructor, or type conversion before '(' token
2> ../nrf_SDK/components/libraries/util/app_util.h:237:62: note: in definition of macro '_SELECT_ASSERT_FUNC'
2> ../nrf_SDK/components/libraries/util/app_util.h:253:25: note: in expansion of macro 'STATIC_ASSERT_MSG'
2> ../nrf_SDK/components/softdevice/common/nrf_sdh_ble.h:83:1: note: in expansion of macro 'STATIC_ASSERT'
2> ../nrf_SDK/components/ble/nrf_ble_gatt/nrf_ble_gatt.h:71:1: note: in expansion of macro 'NRF_SDH_BLE_OBSERVER'
2> /Users/bernerj/Documents/SEGGER Embedded Studio for ARM Projects/ses-food-sensor/Application/main.cpp:92:1: note: in expansion of macro 'NRF_BLE_GATT_DEF'
2> ../nrf_SDK/components/libraries/util/app_util.h:216:55: error: expected constructor, destructor, or type conversion before '(' token
2> ../nrf_SDK/components/libraries/util/app_util.h:237:62: note: in definition of macro '_SELECT_ASSERT_FUNC'
2> ../nrf_SDK/components/libraries/util/app_util.h:253:25: note: in expansion of macro 'STATIC_ASSERT_MSG'
2> ../nrf_SDK/components/softdevice/common/nrf_sdh_ble.h:84:1: note: in expansion of macro 'STATIC_ASSERT'
2> ../nrf_SDK/components/ble/nrf_ble_gatt/nrf_ble_gatt.h:71:1: note: in expansion of macro 'NRF_SDH_BLE_OBSERVER'
2> /Users/bernerj/Documents/SEGGER Embedded Studio for ARM Projects/ses-food-sensor/Application/main.cpp:92:1: note: in expansion of macro 'NRF_BLE_GATT_DEF'
2> ../nrf_SDK/components/libraries/util/app_util.h:216:55: error: expected constructor, destructor, or type conversion before '(' token
2> ../nrf_SDK/components/libraries/util/app_util.h:237:62: note: in definition of macro '_SELECT_ASSERT_FUNC'
2> ../nrf_SDK/components/libraries/util/app_util.h:253:25: note: in expansion of macro 'STATIC_ASSERT_MSG'
2> ../nrf_SDK/components/softdevice/common/nrf_sdh_ble.h:83:1: note: in expansion of macro 'STATIC_ASSERT'
2> ../nrf_SDK/components/ble/nrf_ble_qwr/nrf_ble_qwr.h:74:5: note: in expansion of macro 'NRF_SDH_BLE_OBSERVER'
2> /Users/bernerj/Documents/SEGGER Embedded Studio for ARM Projects/ses-food-sensor/Application/main.cpp:93:1: note: in expansion of macro 'NRF_BLE_QWR_DEF'
2> ../nrf_SDK/components/libraries/util/app_util.h:216:55: error: expected constructor, destructor, or type conversion before '(' token
2> ../nrf_SDK/components/libraries/util/app_util.h:237:62: note: in definition of macro '_SELECT_ASSERT_FUNC'
2> ../nrf_SDK/components/libraries/util/app_util.h:253:25: note: in expansion of macro 'STATIC_ASSERT_MSG'
2> ../nrf_SDK/components/softdevice/common/nrf_sdh_ble.h:84:1: note: in expansion of macro 'STATIC_ASSERT'
2> ../nrf_SDK/components/ble/nrf_ble_qwr/nrf_ble_qwr.h:74:5: note: in expansion of macro 'NRF_SDH_BLE_OBSERVER'

Is there a way to fix this? 

Related