C vs C++ development
The current 'C API' header, OVR_CAPI.h includes additional headers that are not compatible with vanilla C (like OVR_Math.h, via OVR_CAPI_Util.h). You can disable them by defining OVR_CAPI_NO_UTILS before you include OVR_CAPI.h, but the code should automatically detect if it's not running in a C++ compiler and not include incompatible headers.
should be changed to...
#if !defined(OVR_CAPI_NO_UTILS)
#include "Extras/OVR_CAPI_Util.h"
#endif
should be changed to...
#if defined(__cplusplus) && !defined(OVR_CAPI_NO_UTILS)
#include "Extras/OVR_CAPI_Util.h"
#endif
