DirectX, Visual 6.0: unresolved external symbol _IID_IDirectInput8A

I'm getting the link error "unresolved external symbol _IID_IDirectInput8A" .

There's are two .cpp files.  Each starts like this:

#define WIN32_LEAN_AND_MEAN   // get rid of Windows things we don't need

#include <windows.h>          // included in all Windows apps
#include <winuser.h>          // Windows constants
#include <gl/gl.h>            // OpenGL include
#include <gl/glu.h>           // OpenGL utilty library

The InputSystem.h file starts thus:

#define DIRECTINPUT_VERSION       0x0800

#include <dinput.h>
#include <objbase.h>
#define INITGUID
#include <initguid.h>

I'm using Visual C++ 6.0.  The first include directory is the Direct X 9.0 SDK/Include; so it's not getting the old 6.0 dinput.h.  The DirectX 9.0 library doesn't come first, because if I move it to the head of the lists, I get this link error:  fatal error LNK1103: debugging information corrupt; recompile module

There is another thread on this, at http://www.experts-exchange.com/Programming/Programming_Platforms/Win_Prog/Q_20796313.html?query=_IID_IDirectInput8A&clearTAFilter=true .  There's a suggestion there of moving the DirectX library to the head of the list.  I'm not sure why that isn't working for me.

Thanks --
Will Briggs
Lynchburg College

w_briggsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jkrCommented:
Are you linking with 'dxguid.lib' also?
w_briggsAuthor Commented:
Yes, I have dxguid.lib and dinput8.lib.
w_briggsAuthor Commented:
Oh, and I just tried this on another machine:  I put the c:\directx\lib directory at the head of the libraries.  It now links and runs fine on that machine.  Still not working on the lab machines.
Fundamentals of JavaScript

Learn the fundamentals of the popular programming language JavaScript so that you can explore the realm of web development.

jkrCommented:
Could you post the 'LIB' and 'INCLUDE' environment variables for both machines?
w_briggsAuthor Commented:
On the machine that isn't working:

INCLUDE=C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include\;C:\Program Files\Microsoft Visual Studio\VC98\atl\include;C:\Program Files\Microsoft Visual Studio\VC98\mfc\include;C:\Program Files\Microsoft Visual Studio\VC98\include

LIB=C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\;C:\Program Files\Microsoft Visual Studio\VC98\mfc\lib;C:\Program Files\Microsoft Visual Studio\VC98\lib

On the machine that is working:

INCLUDE=C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include\;C:\Program Files\Microsoft SDK\Include\.

LIB=C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\;C:\Program Files\Microsoft SDK\Lib\.

On the machine that is not working, I'm going to try changing from the December DirectX9.0 to the February version, just out.

w_briggsAuthor Commented:
Just updated to February version of DirectX 9.0; no effect:  library is still called corrupt at link time.  The error:

dinput8.lib(dilib1.obj) : fatal error LNK1103: debugging information corrupt; recompile module
w_briggsAuthor Commented:
Reinstalled Visual 6.0; no effect.
w_briggsAuthor Commented:
I'm attempting to close the question, as I have found the answer elsewhere.  See http://www.experts-exchange.com/Community_Support/Q_21741453.html .

w_briggsAuthor Commented:
I answered the question myself, via web search.  The answer is from GameDev.net ( http://www.gamedev.net/community/forums/showfaq.asp?forum_id=10 ):

"Also, if you're using VC++ 6, [DirectX] is not supported starting from the December 2004 SDK, so you either have to upgrade, or use another SDK (Like the October 2004 SDK with the extras package that comes with it)."
kodiakbearCommented:
Closed, 250 points refunded.
kb
Experts Exchange Moderator

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.