Error :
../../../../../../components/libraries/util/app_util.h:118:55: error: expected constructor, destructor, or type conversion before ‘(’ token
in this source (written by Nordic):
#ifdef __GNUC__
#define STATIC_ASSERT_SIMPLE(EXPR) _Static_assert(EXPR, "unspecified message")
included from a .cpp file.
I am porting a project from Eclipse, where this compiles cleanly with C++ using the GNU ARM tools. AFAIK this is valid code, so I suspect my project options or the generated compiler command is not correct.
I have tried changing Project>Options>Compiler><foo> Language Standard to various values including GNU++14 etc.
How do you view the exact compiler command in the transcript?
../../../../../../components/libraries/util/app_util.h:118:55: error: expected constructor, destructor, or type conversion before ‘(’ token
in this source (written by Nordic):
#ifdef __GNUC__
#define STATIC_ASSERT_SIMPLE(EXPR) _Static_assert(EXPR, "unspecified message")
included from a .cpp file.
I am porting a project from Eclipse, where this compiles cleanly with C++ using the GNU ARM tools. AFAIK this is valid code, so I suspect my project options or the generated compiler command is not correct.
I have tried changing Project>Options>Compiler><foo> Language Standard to various values including GNU++14 etc.
How do you view the exact compiler command in the transcript?