Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Simple DInput question

Posted on 2002-06-23
5
Medium Priority
?
638 Views
Last Modified: 2013-12-08
Hey, I'm writing some directInput stuff (starting my game programming with "Tricks of Windows Game Programming Gurus") and I'm trying to use GUID_SysMouse and GUID_SysKeyboard, and I'm getting an error about unresolved symbols.

I thought all I needed to have was dinput.lib linked, dinput.h included, and #define INITGUID

But for some strange reason I'm still getting unresolved symbol errors, this is VC++ 6's error output:

CInputLib.obj : error LNK2001: unresolved external symbol _GUID_SysMouse
CInputLib.obj : error LNK2001: unresolved external symbol _GUID_SysKeyboard
dinput.lib(dilib1.obj) : error LNK2001: unresolved external symbol _GUID_ZAxis
dinput.lib(dilib1.obj) : error LNK2001: unresolved external symbol _GUID_YAxis
dinput.lib(dilib1.obj) : error LNK2001: unresolved external symbol _GUID_XAxis
dinput.lib(dilib2.obj) : error LNK2001: unresolved external symbol _GUID_Key


--Sketchy
0
Comment
Question by:Sketchy
5 Comments
 
LVL 4

Expert Comment

by:joachimc
ID: 7106837
HI

You might have to have dinput8.lib or dxguid.lib also.

/Joachim
0
 
LVL 19

Expert Comment

by:DreamMaster
ID: 7107759
0
 

Accepted Solution

by:
c_i_wood earned 200 total points
ID: 7149578
I had this problem too. I was using DX8. The solution was:

Don't define INITGUID
Include dinput.h
Link against dinput8.lib and dinput.lib
Link against dxguid.lib
0
 

Expert Comment

by:CleanupPing
ID: 9464753
Sketchy:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Artificial Intelligence comes in many forms, and for game developers, Path-Finding is an important ability for making an NPC (Non-Playable Character) maneuver through terrain.  A* is a particularly easy way to approach it.  I’ll start with the algor…
Recently, in one of the tech-blogs I usually read, I saw a post about the best-selling video games through history. The first place in the list is for the classic, extremely addictive Tetris. Well, a long time ago, in a galaxy far far away, I was…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question