0

I am working on a project using Kinect Xbox 360 and Open NI framework. I wrote a simple code for printing Open NI version but it gives me error shown below. Any Help? I am using Visual Studio 2017 and Open NI 2

Code:

#include "OpenNI.h"
#include<iostream>
using namespace std;


void main() {
    openni::OpenNI::initialize();
    openni::Version a = openni::OpenNI::getVersion();
    cout << a.build;
 }

Error:

1>Source.cpp
1>Source.obj : error LNK2019: unresolved external symbol 
__imp__oniInitialize referenced in function "public: static enum 
openni::Status __cdecl openni::OpenNI::initialize(void)" (?
initialize@OpenNI@openni@@SA?AW4Status@2@XZ)
1>Source.obj : error LNK2019: unresolved external symbol 
__imp__oniGetVersion referenced in function "public: static struct 
openni::Version __cdecl openni::OpenNI::getVersion(void)" (?
getVersion@OpenNI@openni@@SA?AUVersion@2@XZ)

0 Answers0