Solved

Simple DInput question

Posted on 2002-06-23
5
628 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

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…
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 …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

710 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