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

SDK 12.2 - Build error in sdk_resources.h when included from C++

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
Related