VC错误——error LNK1123: failure during conversion

problem

Open VC2010 create a very simple Win32Console program, and then the following error message appears when you press F5 to run the program:

error LNK1123: failure during conversion to COFF: file invalid or corrupt

Wrong cause analysis

Tip Description conversion to COFF file failed because of an error (VS2010 installed, generally not a [file invalid] wrong).
The conversion work is completed cvtres.exe this program. The root cause of the above error is present in the system there are several versions of cvtres.exe.
Version of the system directory: C: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ cvtres.exe
next version of VS directory: C: \ Program Files (x86 ) \ Microsoft Visual Studio 10.0 \ VC \ BIN \ cvtres.exe
if 64-bit system, then there will be a file of the same name located in: C: \ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ cvtres.exe
However Framework and Framework64 next two versions are the same, and because the system updates, general the new version than in the VS directory.
This solution will obviously simple, simply rename or delete the old version.
As for observation file version, please refer to the following chart:
VC错误——error LNK1123: failure during conversion

Guess you like

Origin blog.51cto.com/zhuxianzhong/2423205