Sign in to follow this  
b_rollins

Direct Input

Recommended Posts

I am new to Direct Input and am having some trouble. In Visual C++, I keep getting the following errors: error LNK2001: unresolved external symbol _c_dfDIKeyboard error LNK2001: unresolved external symbol _GUID_SysKeyboard error LNK2019: unresolved external symbol _DirectInput8Create@20 referenced in function _InitializeDirectInput error LNK2001: unresolved external symbol _IID_IDirectInput8W Here are the include files/libraries I include in the project: #include <windows.h> #include <windowsx.h> #include <dinput.h> #pragma comment (lib, "dinput8.lib") #pragma comment (lib, "dxguid.lib") I've come across references in DirectInput tutorials to a "dinput.lib" library, but the June 2008 DirectX SDK doesn't have it. Could that be the problem? (Also, I've verified I have "dinput8.dll" and "dinput.dll" in my system folder)

Share this post


Link to post
Share on other sites
Never mind, found the problem. The lib directory I told the compiler to search was the x64 versions of the libs (I used that because I have XP x64). But apparently I have to use the x86 versions.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this