0.6.0.0 compiling with Win32_GLAppUtils.h
I'm trying to build a few simple apps to explore the new SDK and I would like to reuse the structs found in the Win32_GLAppUtils header file. Unfortunatly, I'm getting linking errors when I try this. I've boiled one of the apps down to nothing and it still gets 12 link errors, the first of which is below. Googling tells me it's a configuration error, but for the life of me, I can't find it. If I comment out the include line, it compiles without problems. Any ideas?
Thanks.
Error:
error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MDd_DynamicDebug' in DisplayMain.obj D:\OVRift6.0\Projects\OpenGLRewrite\2.3 Basic Display\LibOVRKernel.lib(CAPI_GLE.obj)
Thanks.
Error:
error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MDd_DynamicDebug' in DisplayMain.obj D:\OVRift6.0\Projects\OpenGLRewrite\2.3 Basic Display\LibOVRKernel.lib(CAPI_GLE.obj)
// from the Oculus Tiny Romm Advanced app
#include <Win32_GLAppUtil.h>
#include <OVR_CAPI_0_6_0.h>
#include <iostream>
int main(int argc, char* argv[])
{
std::cout << "Hello Rift" << std::endl;
// Initialize LibOVR
ovr_Initialize(nullptr);
// Initialze Rift
ovrHmd hmd = nullptr;
ovrHmd_Create(0, &hmd);
std::cout << "Goodbye Rift" << std::endl;
}
