Hi everyone :D
I'm not being able to compile a c++ code on segger embedded studio.
The same code compiles with the Makefile provided in the SDK 14.2, but not with the segger solution on the same SDK.
I change the main extension to cpp (ble_app_blinky example for the pca10040) and change the include on the segger solution. When it compiles, it gives me this errors on the following lines:
- _Static_assert’ was not declared in this scope
- expected constructor, destructor, or type conversion before ‘(’ token
#define STATIC_ASSERT_SIMPLE(EXPR) _Static_assert(EXPR, "unspecified message") #define STATIC_ASSERT_MSG(EXPR, MSG) _Static_assert(EXPR, MSG)
I read the forum here and changed the "_Static_assert" to static_assert due to c++/c differences, but then it doesn't compile again and gives me this errors on these lines
- expected declaration specifiers or ‘...’ before ‘(’ token
#define PUSHED_HEADER_SIZE (sizeof(nrf_log_pushed_header_t)/sizeof(uint32_t)) #define STATIC_ASSERT_SIMPLE(EXPR) static_assert(EXPR, "unspecified message")
Maybe this is a configuration problem. Does anyone know how to configure segger properly?
Thanks,
Renato Morelli