This issue has been frequently posted in various forums, with many creative troubleshooting procedures and solutions. The root cause is an issue in the C/C++ compiler for Visual Studio 2005 SP1 which conflicts with Visual Studio 2008 and later. If you find yourself unable to link using /DEBUG in the Windows SDK command line build environment or Visual Studio 2005 SP1 and receive the below error, you may be interested in installing the patch provided below.

 

Symptom: You have a .lib file or an .obj file that was built by using Microsoft Visual C++ 2008, including Windows 7 SDK content. You add this file to a project as a link dependency. When you build the project in Microsoft Visual Studio 2005 Service Pack 1 (SP1) to generate an .exe file or a .dll file, you may receive the following link error:

 

Fatal error LNK1103: debugging information corrupt

 

Cause: This problem occurs because of a compatibility issue between Visual Studio 2005 SP1 and Visual Studio 2008 and later versions. For more information, see the Microsoft Support page for the patch: http://support.microsoft.com/kb/949009/.

 

The MSDN Windows SDK Developer Center is the place to find resources and links to Windows SDK products, release notes, technical articles, and more.