Windows 7 SDK with Visual C++ 2005: Failure to compile in Debug mode.



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.


Comments (9)

  1. reklam says:

    Introducing such a topic you’d like to congratulate you’ve let us know. Have good work

  2. MMOGamer says:

    I’ve received this error numerous times, but after manually looking through my code and fixing a few issues the problem tends to go away.

  3. pariuri sportive says:

    Well worth the read. Thanks for sharing this information. I got a chance to know about this.

  4. web.tasarım says:

    Introducing such a topic you’d like to congratulate you’ve let us know. Have good work..

  5. rezultate says:

    A linker error of types LNK2001 usually implies that you have to add a library to your Project Settings –> Linker options.

    It implies either a missing library, OR a method that has been declared, used, but not defined.

    It has nothing to do with ncb files…

  6. blackman says:

    This is a great tutorial. Thanks

  7. pariuri sportive says:

    Thanks for sharing this information. It`s a good site.<a href="http://www.freebet.ro/…/a&gt;

  8. pariuri sportive says:

    i like these site. i was looking for someting like these

    interesting job keep on the good job

    try <a href="http://www.freebet.ro/&quot; rel="nofollow">pariuri sportive</a>