Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function 'GetDefaultKinectSensor' always gives a LNK2019 error when linking. #20

Open
LuvaiCutlerywala opened this issue Aug 22, 2021 · 1 comment

Comments

@LuvaiCutlerywala
Copy link

For context, I am currently using Visual Studio 2019 for the project and am using the Kinect For Windows SDK 2.0. I have set the path for the Kinect20.lib file in the Linker section of the Properties sheet, as well as also included the Kinect.h header file. When linking, it has always given me the error LNK2019 unresolved external symbol _GetDefaultKinectSensor@4 referenced in function "public: static long __cdecl BodyTracker::initialiseSensor(void)" (?initialiseSensor@BodyTracker@@SAJXZ) BodyTracker C:\Users\luvai_kcrxbon\C++\BodyTracker\BodyTracker.obj 1 . I am quite to new to VS, as well as programming for the Kinect. So any help, or even a pointer in the right direction would be much appreciated.

@KIRFEDO
Copy link

KIRFEDO commented Oct 30, 2023

Hi guys, for anyone still out there, to fix this issue you need to add kinect20.lib in Project Properties -> Linker -> Input -> Additional Dependencies :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants