Public Group

This topic is 4869 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

error LNK2001: unresolved external symbol _IID_IDirectInput8A Every post that I've seen related to the above says to include dinput8.lib and dxguid.lib. I did but this error will not go away. Here are all my Object/Library modules: dinput8.lib dxguid.lib opengl32.lib glu32.lib glaux.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib Any idea what .lib file I need to include? Thanks.

##### Share on other sites
I think you need dinput.lib as well as dinput8.lib [wink]

##### Share on other sites
I added dinput.lib and am still getting the error. :(
For now, the only way I can get rid of it is by including all the .lib files, cause I don't know where _IID_IDirectInput8A is defined.

[Edited by - GosuDrew on June 18, 2005 11:59:42 AM]

##### Share on other sites
#include <objbase.h>#define INITGUID#include <initguid.h>

That tip was taken from here.

##### Share on other sites
Quote:
 Original post by GosuDrewerror LNK2001: unresolved external symbol _IID_IDirectInput8A

That error specifies that you need to link with dxguid.lib, you are sure that you have linked to it properly? That is where the IID guids are stored.

##### Share on other sites
Did you set the direct input version define?

#define DIRECTINPUT_VERSION 0x0800#include <dinput.h>

##### Share on other sites
Wow, it just works with dxguid.lib and dinput8.lib now. I have no idea why it didn't work initially.

Thanks for all of the above responses.

1. 1
2. 2
3. 3
Rutin
22
4. 4
5. 5

• 12
• 19
• 14
• 9
• 9
• ### Forum Statistics

• Total Topics
632929
• Total Posts
3009285
• ### Who's Online (See full list)

There are no registered users currently online

×