DInput8 Strange Error

This topic is 4620 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

This statement: keyboard->SetDataFormat(&c_dfDIKeyboard); generates this error: Linking... dinput8.lib(dilib2.obj) : fatal error LNK1103: debugging information corrupt; recompile module Error executing link.exe. Why oh why do I get these weird errors? It seems like this stuff is just working against me.

Share on other sites
My psychic powers of debugging tell me... not a lot actually, except maybe to ask what version of Visual Studio are you using and what version of the DirectX SDK have you got?

-Mezz

Share on other sites
April release of the SDK. VC++ 6.

Share on other sites
Thought so. VC++ 6 isn't supported anymore with the recent SDK releases. I think official support ended with Summer 2004 or thereabouts. There are occasionally components that still work (somebody managed to make D3D work still I think) but nothing is guarenteed and it's probably hit n miss - you either have to get an earlier DX SDK before the support was dropped, or upgrade to a newer version of Visual Studio. Perhaps the VC.NET 2003 Toolkit would let you use it, as it contians replacement compiler & linkers which should still work, not entirely sure though.

-Mezz

Share on other sites
GAH, is that what the problem is? They're already cutting off support for VC++ 6?! DAMNIT.

Share on other sites
Do I have to revert back to an earlier SDK, or can I revert back to an earlier DirectInput?

-Mezz

Share on other sites
I think doing the following fixes it:

- Go to msdn and download MSVC Toolkit 2003 (30MB or so)
- Install it
- Open VC6
- Go into Tools -> Options -> Directories
- Add in the include/lib/bin directories ABOVE the old VC6 ones (but below the dx9, of course).

That should do it (someone lemme know if i forgot something... i got Dinput 8 to work after that though).

Share on other sites
Thanks guys, but looks like I will have to just get the VC++.NET soon anyways.

Share on other sites
Crap, I think I deleted an include accidently. For includes under the Platform Win32, I have VC98\ATL\INCLUDE and VC98\MFC\INCLUDE plus the new include from the toolkit and the directx one of course. Am I missing one?

It doesn't know what windows.h is haha.

EDIT:
N/m. Got it.

Share on other sites
I do however get this warning, and I'd like to know if there is a way to get rid of it.

LINK : warning LNK4224: /PDBTYPE is no longer supported; ignored

Share on other sites
Quote:
 Original post by POLSKASHI do however get this warning, and I'd like to know if there is a way to get rid of it.LINK : warning LNK4224: /PDBTYPE is no longer supported; ignored

I *THINK* PDBTYPE is just some flag specifying the type of format the debug data is to be in (or something like that). I get that too, and haven't been able to find the /PDBTYPE flag in my linker settings, either cause it's not there, or cause I'm horribly blind :). If someone can clue me in on that, I'd like to know too.