Solved

Simple DInput question

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi GLScene export scene 7 1,231
assassins creed companion app 4 on XBOX ONE? 2 563
Java Sound- is an old-school BEEP possible? 6 93
What are tutor.com most needed tutors? 3 53
What is RenderMan: RenderMan is a not any particular piece of software. RenderMan is an industry standard, defining set of rules that any rendering software should use, to be RenderMan-compliant. Pixar's RenderMan is a flagship implementation of …
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 Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

832 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