Error LNK2019 unresolved external symbol XInputGetState referenced in function "public: virtual void __cdecl gainput::InputDevicePadImplWin::Update(class gainput::InputDeltaState *)" (?Update@InputDevicePadImplWin@gainput@@UEAAXPEAVInputDeltaState@2@@Z) Game D:\CPP Projects\Rootex\build\game\Gainput.lib(GainputInputDevicePad.obj) 1
Error LNK2019 unresolved external symbol XInputSetState referenced in function "public: virtual bool __cdecl gainput::InputDevicePadImplWin::Vibrate(float,float)" (?Vibrate@InputDevicePadImplWin@gainput@@UEAA_NMM@Z) Game D:\CPP Projects\Rootex\build\game\Gainput.lib(GainputInputDevicePad.obj) 1
I have made my own CMake to compile this project as a library. However some symbols are not being compiled.
My CMakeLists (alongside include/ and source/):
The link errors: