Incremental Linking (LNK1123) error in VS2010 while building project

Question: What is Incremental Linking in Visual Studio 2010?

Answer: Please study given link to understand Incremental Linking in visual studio 2010.
[Link] http://msdn.microsoft.com/en-us/library/4khtbfyf(v=vs.100).aspx

Question: How error looks like while building project on visual studio?

Answer: Build error will be looks like,
[Error Statement] “Fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt”

Question: What is the reason behind this build error?

Answer: due to some reason, x86 version of cvtree.exe had changed on given location,
[Location] C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\cvtres.exe
Wrong version:  03/18/2010  01:16 PM            31,048 cvtres.exe
Correct version: 02/21/2011  06:03 PM            31,056 cvtres.exe
The wrong version has a dependency on msvcr100_clr0400.dll
The correct version has a dependency on msvcr100.dll

Question: What will be solution for this problem?

Answer: Just rename “cvtres.exe” file on given location,
[Location] C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\cvtres.exe
So that, visual studio will trace new version of cvtres.exe from given location automatically,
[Location] C:\Windows\Microsoft.NET\Framework\v4.0.30319

2 thoughts on “Incremental Linking (LNK1123) error in VS2010 while building project

  1. Pingback: Fix Cvtres.exe Errors - Windows XP, Vista & Windows 7, 8

  2. Pingback: How To Fix Cvtres.exe Errors - Windows Vista, Windows 7 & 8

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s