Solved

Simple DInput question

Posted on 2002-06-23
5
624 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 50 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Is Python as good as Java for an RTS game server? 10 1,366
Doesn't seem logical 8 233
FPS using mouse to move rather than keys in Unity 3d 2 220
teenSum java challenge 7 90
As game developers, we quickly learn that Artificial Intelligence (AI) doesn’t need to be so tough.  To reference Space Ghost: “Moltar, I have a giant brain that is able to reduce any complex machine into a simple yes or no answer. (http://www.youtu…
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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

828 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