DINPUT8 unresolved

Started by
3 comments, last by GameDev.net 17 years, 10 months ago
Hello, I'm getting an unresolved external symbols on DirectInput. Trying to do a basic init keyboard and mouse, then display keyboard and mouse data. No compile errors, but some link errors. Maybe some library I'm forgeting? I have manually included dinput8.lib and dinput.h but getting this: Linking... DirectInputDemo.obj : error LNK2001: unresolved external symbol _IID_IDirectInput8A DirectInputDemo.obj : error LNK2001: unresolved external symbol _GUID_SysKeyboard DirectInputDemo.obj : error LNK2001: unresolved external symbol _GUID_SysMouse dinput8.lib(dilib2.obj) : error LNK2001: unresolved external symbol _GUID_Key dinput8.lib(dilib1.obj) : error LNK2001: unresolved external symbol _GUID_ZAxis dinput8.lib(dilib1.obj) : error LNK2001: unresolved external symbol _GUID_YAxis dinput8.lib(dilib1.obj) : error LNK2001: unresolved external symbol _GUID_XAxis Release/DirectInputDemo.exe : fatal error LNK1120: 7 unresolved externals Something to do with GUID? Source here: DirectInputDemo.cpp DirectInputDemo.zip Phil P
Advertisement
You may need to link to "dxguid.lib".
dxguid.lib
That was it, thanks.

Been using GetAsynchKeyState and Win32 for mouse, got some lag, so I figure I'd switch over.

www.VazGames.com

Phil P
nice to see you around again Phil:D I've still got your Vazteroids hanging around somewhere!

This topic is closed to new replies.

Advertisement