Sign in to follow this  

Compilation trauma with april05 SDK

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

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, After reading the sticky, I installed the april 05 SDK, with MSVC6, but am getting this strange compilation error: Linking... dinput.lib(dilib2.obj) : fatal error LNK1103: debugging information corrupt; recompile module Error executing link.exe. dinput??? aaargh!!! Any advice gratefully received.... Si edit: ok so april05 SDK is not compatible with VC6, not if you wanna use dinput right? maybe time for an upgrade [Edited by - sipickles on May 15, 2005 9:10:01 AM]

Share this post


Link to post
Share on other sites
Correct, support for VS 6.0 has been droped for good. I think they droped it in the Oct 2004 release, and they wont put it back. So your only hope is to revert back to Summer 2004 release of DirectX 9, or upgrade to a newer version of Visual Studio. Currently you can use the latest beta for free. You can download it at http://msdn.microsoft.com

// Allmight

Share this post


Link to post
Share on other sites
Someone else had this same problem a while back too:

http://www.gamedev.net/community/forums/topic.asp?topic_id=318322&whichpage=1�


While the newer SDKs might work on MSVC 6, Microsoft aren't officially supporting anything below MSVC.NET so you might have problems like this.

From the error message, it's likely due to the format of .lib files having changed slightly (or been extended, probably with security features) with newer version of the compiler.


Solutions?:

1) Upgrade your compiler; maybe to the beta of VS 2005 mentioned in the other thread.

2) Use LoadLibrary() and GetProcAddress() to load the DirectInput DLL and access the exported functions (dinput.lib is mostly just an import library which tells the compiler to do that automatically anyway - I think there are also a few symbols defined).

3) Find a way to create a new MSVC6 compatible import lib for dinput.lib. You might be able to use LIB.EXE (search the MSVC install folder) to create a new import lib. You might be able to make a dummy DLL with the same exports as the real DLL; you may be able to abuse a .DEF file in some way; there might be a utility out there to convert the lib files (shouldn't be too hard to write one).

4) Downgrade the version of the DirectX SDK you're using. Probably not the best thing to do since you lose all the new features they've added; but it should work as long as the version of the DirectX runtime components is the same (e.g. DirectX 9.0c)

Share this post


Link to post
Share on other sites

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

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this