• Advertisement

Archived

This topic is now archived and is closed to further replies.

Linking problem with dinput8.lib

This topic is 5619 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

I''m writing a new application with DirectX from scratch and now that I''m trying to implement the input devices it''s giving me the typical "Unresolved external" errors. I linked it to dinput8.lib and included dinput.h. What else should I do? I have another program that works fine with what I think is the exact same setup. An example error: "dinput8.lib(dilib1.obj) : error LNK2001: unresolved external symbol _GUID_ZAxis" Any advice? Thanks VS .NET with DX 8.1

Share this post


Link to post
Share on other sites
Advertisement
This might help:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intinput/hh/intinput/di_4zjd.asp?frame=true

-------
"Programming is like sex make one mistake, and you have to support it forever."
Homepage: http://students.washington.edu/andrey

Share this post


Link to post
Share on other sites
Are you getting more than one complaint about unresolved external GUIDs? If you are, you probably aren''t linking to dxguid.lib, or haven''t got "#define INITGUID" before you include dinput.h.

Share this post


Link to post
Share on other sites
Doh, I forgot the #define INITGUID. It didn''t work after I put that but after a couple compiles it ended up working.. ? Ah well, thanks!! It works great now.

Share this post


Link to post
Share on other sites

  • Advertisement