Jump to content
  • Advertisement
Sign in to follow this  
GosuDrew

DirectInput Linking Errors

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

If you intended to correct an error in the post then please contact us.

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 this post


Link to post
Share on other sites
Advertisement
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 this post


Link to post
Share on other sites
Quote:
Original post by GosuDrew
error 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 this post


Link to post
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!