Issues with VS2013 configuration, undeclared identifiers
Hello, I am trying to do the simple Minimal Oculus tutorial to configure the SDK 0.4.0 for Visual Studio 2013 (https://developer.oculusvr.com/wiki/Minimal_Oculus_Application_0.3.x). I realize this tutorial is for the 0.3.x version but believe it should be the same process and if not the official tutorial would have been updated. I have followed the directions as stated in the tutorial and currently have the following code:
Just to make sure everything is working correctly. However I am getting a couple of errors stating that a few things are undefied however not exactly sure why since the configuration seems pretty much straight forward. Below is my error log:
I have done similar configurations when including SDKs or libraries without fail. Any insight would be great, especially from people who may have dealt with this problem and solved it.
Thanks!
#include "OVR_CAPI.h"d
#include "Kernel\OVR_Math.h"
using namespace OVR;
ovrHmd hmd; //global variables, should be members of class in future
ovrHmdDesc hmdDesc;
ovrFrameTiming frameTiming;
void Init(){//initialize the SDK
ovr_Initialize();
hmd = ovrHmd_Create(0);
if (!hmd) return;
ovrHmd_GetDesc(hmd, &hmdDesc);
ovrHmd_StartSensor(hmd, ovrSensorCap_Orientation | ovrSensorCap_YawCorrection |
ovrSensorCap_Position, ovrSensorCap_Orientation);
}
void Clear(){//a "destructor"
ovrHmd_Destroy(hmd);
ovr_Shutdown();
}
int main(){
Init();
Clear();
return 0;
}
Just to make sure everything is working correctly. However I am getting a couple of errors stating that a few things are undefied however not exactly sure why since the configuration seems pretty much straight forward. Below is my error log:
Error 1 error C3861: 'ovrHmd_GetDesc': identifier not found d:\senior design\oculus test\oculus test\main.cpp 21 1 Oculus Test
Error 2 error C2065: 'ovrSensorCap_Orientation' : undeclared identifier d:\senior design\oculus test\oculus test\main.cpp 23 1 Oculus Test
Error 3 error C2065: 'ovrSensorCap_YawCorrection' : undeclared identifier d:\senior design\oculus test\oculus test\main.cpp 23 1 Oculus Test
Error 4 error C2065: 'ovrSensorCap_Position' : undeclared identifier d:\senior design\oculus test\oculus test\main.cpp 24 1 Oculus Test
Error 5 error C2065: 'ovrSensorCap_Orientation' : undeclared identifier d:\senior design\oculus test\oculus test\main.cpp 24 1 Oculus Test
Error 6 error C3861: 'ovrHmd_StartSensor': identifier not found d:\senior design\oculus test\oculus test\main.cpp 23 1 Oculus Test
7 IntelliSense: identifier "ovrHmd_GetDesc" is undefined d:\Senior Design\Oculus Test\Oculus Test\Main.cpp 17 2 Oculus Test
8 IntelliSense: identifier "ovrHmd_StartSensor" is undefined d:\Senior Design\Oculus Test\Oculus Test\Main.cpp 19 2 Oculus Test
9 IntelliSense: identifier "ovrSensorCap_Orientation" is undefined d:\Senior Design\Oculus Test\Oculus Test\Main.cpp 19 26 Oculus Test
10 IntelliSense: identifier "ovrSensorCap_YawCorrection" is undefined d:\Senior Design\Oculus Test\Oculus Test\Main.cpp 19 53 Oculus Test
11 IntelliSense: identifier "ovrSensorCap_Position" is undefined d:\Senior Design\Oculus Test\Oculus Test\Main.cpp 20 3 Oculus Test
I have done similar configurations when including SDKs or libraries without fail. Any insight would be great, especially from people who may have dealt with this problem and solved it.
Thanks!
