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

C++ compilation error with SDK 12.1.0 and 12.0.0: error: expected declaration before '}' token

Getting the error when trying to compile the C++ project with SDK 12.1.0:

In file included from .../components/softdevice/common/softdevice_handler/softdevice_handler.h:41:0,
                 from main.cpp:11:
.../components/softdevice/common/softdevice_handler/ant_stack_handler_types.h:78:1: error: expected declaration before '}' token
 }
 ^

The same with SDK 12.0.0.

Related