Welcome to MSDN Blogs Sign in | Join | Help

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.

Published Friday, May 22, 2009 9:09 PM by wsdkblog@microsoft.com

Comments

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

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

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

Wednesday, July 15, 2009 6:52 PM by reklam

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

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.

Wednesday, July 29, 2009 3:49 AM by MMOGamer

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

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

Wednesday, November 25, 2009 12:15 PM by pariuri sportive

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

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

Monday, November 30, 2009 4:04 AM by web.tasarım

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

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...

Wednesday, December 02, 2009 9:21 PM by rezultate
Anonymous comments are disabled
 
Page view tracker