Issue when using SDK 12.2 which needs to be fixed in SDK:
sdk_resources.h will not build when included from C++.
This is because start extern "C" {" is placed in wrong place within #define ESB_PRESENT. It should be moved to top of file.
For those of you with the same problem, you can undefine __cplusplus before you include sdk_resources.h like this.
#undef __cplusplus // Fix for bug in sdk_resources.h
extern "C" {
#include "sdk_resources.h"
}
#define __cplusplus