According to the question and answer post collation, original: http://bbs.csdn.net/topics/390121452
Ask:
VS 2010 opens an instance with such an error:
Link:fatal Error LNK1123: Failed during transition to COFF: invalid or corrupt file
A: The connector LNK is converted by calling Cvtres.exe to complete the file to the COFF format, so this error occurs because of a problem with Cvtres.exe.
The ultimate Solution:
VS2010 After some updates, the Win32 Console project will be "error LNK1123" errors, the solution for the Project | Project Properties | Configuration Properties | Inventory Tool | INPUT and OUTPUT | Embed list "yes" to "no", But you have to set it up one time without creating a new project.
When establishing the VS2010 Win32 Project project, "Error LNK1123" errors are still occurring according to the solution above, and the solution is as follows:
The first step: the same as on.
Step two: Change Project | Project Properties | Configuration Properties | connector | manifest File | Embed list to "no".
The third step: the general computer after the two-step setup can solve the problem, but if there are problems, then click the method to solve:
Whether the computer is a 64bit operating system, if so, continue 2.
Find out if there are two cvtres.exe. One is C:\Program Files (x86) \microsoft Visual Studio 10.0\vc\bin\cvtres.exe and the other is C:\Windows\Microsoft.NET\Framework\ V4.0.30319\cvtres.exe. Right-click Properties | Details to view both version numbers, delete/rename older versions, or reset the path variable.
Unexpectedly, the root of the solution is the third step, after removing the old version of Cvtres.exe, you do not need to set the configuration every time.
Search the computer inside Cvtres.exe, found that there are multiple files, with the latest Cvtres.exe replace old files can be replaced before you remember to back up, if not, can be replaced. For example: My Computer installed VS2010, recently updated the system, patched some patches, the result of this error. Search inside the computer find
C:\program files\microsoft visual studio 10.0\vc\bin
C:\Windows\winsxs\x86 _netfx-cvtres_for_vc_and_vb_b03f5f7f11d50a3a_6.1.7600.16385_none_ba476986f05abc65
C:\Windows\Microsoft.NET\ framework\v4.0.30319
There are cvtres.exe files in all three paths, so I try to replace the first path file with the file in the second path, and solve the problem. &NBSP,
But the 25 floor of the train of thought, 25 floor brother is mighty.