I am also getting similar errors while compiling on linux platform :
NiSimpleSkeleton.c:(.text+0x1dc): undefined reference to `xnOSGetEpochTime'
/tmp/ccUfVhez.o: In function `User_LostUser(xn::UserGenerator&, unsigned int, void*)':
NiSimpleSkeleton.c:(.text+0x2c4): undefined reference to `xnOSGetEpochTime'
/tmp/ccUfVhez.o: In function `UserPose_PoseDetected(xn::PoseDetectionCapability&, char const*, unsigned int, void*)':
NiSimpleSkeleton.c:(.text+0x2f9): undefined reference to `xnOSGetEpochTime'
/tmp/ccUfVhez.o: In function `UserCalibration_CalibrationStart(xn::SkeletonCapability&, unsigned int, void*)':
NiSimpleSkeleton.c:(.text+0x3d3): undefined reference to `xnOSGetEpochTime'
/tmp/ccUfVhez.o: In function `UserCalibration_CalibrationComplete(xn::SkeletonCapability&, unsigned int, XnCalibrationStatus, void*)':
NiSimpleSkeleton.c:(.text+0x408): undefined reference to `xnOSGetEpochTime'
/tmp/ccUfVhez.o: In function `xnInitWrapper(char const*)':
NiSimpleSkeleton.c:(.text+0x58b): undefined reference to `xnInit'
NiSimpleSkeleton.c:(.text+0x5a8): undefined reference to `serialize_int(char*, int)'
/tmp/ccUfVhez.o: In function `xnContextOpenFileRecordingWrapper(char const*)':
NiSimpleSkeleton.c:(.text+0x617): undefined reference to `xnContextOpenFileRecording'
NiSimpleSkeleton.c:(.text+0x634): undefined reference to `serialize_int(char*, int)'
/tmp/ccUfVhez.o: In function `xnFindExistingRefNodeByTypeWrapper(char const*)':
NiSimpleSkeleton.c:(.text+0x6e4): undefined reference to `xnFindExistingRefNodeByType'
NiSimpleSkeleton.c:(.text+0x701): undefined reference to `serialize_int(char*, int)'
NiSimpleSkeleton.c:(.text+0x75e): undefined reference to `xnFindExistingRefNodeByType'
NiSimpleSkeleton.c:(.text+0x77b): undefined reference to `serialize_int(char*, int)'
/tmp/ccUfVhez.o: In function `xnFindSkeletonCapabilityWrapper(char const*)':
NiSimpleSkeleton.c:(.text+0x7e0): undefined reference to `xnIsCapabilitySupported'
/tmp/ccUfVhez.o: In function `xnStartGeneratingAllWrapper(char const*)':
NiSimpleSkeleton.c:(.text+0xb0d): undefined reference to `xnStartGeneratingAll'
NiSimpleSkeleton.c:(.text+0xb2a): undefined reference to `serialize_int(char*, int)'
/tmp/ccUfVhez.o: In function `xnWaitOneUpdateAllWrapper(char const*)':
NiSimpleSkeleton.c:(.text+0xb9d): undefined reference to `xnWaitOneUpdateAll'
NiSimpleSkeleton.c:(.text+0xbbd): undefined reference to `xnGetUsers'
NiSimpleSkeleton.c:(.text+0xbda): undefined reference to `xnGetUsers'
NiSimpleSkeleton.c:(.text+0xc01): undefined reference to `xnIsSkeletonTracking'
Though I have included required header file <XnCppWrapper.h> and the OpenNI header file
Please help if you are able to figure out the problem.
Thanks a lot.