Link:fatal Error LNK1123: Failed during transition to COFF: invalid or corrupt file

Source: Internet
Author: User

Original address: http://yacare.iteye.com/blog/2010049

Many partners after updating VS2010, or uninstalling VS2012 installation 2010, the Win32 Console PROJECT/MFC project will appear "link:fatal error LNK1123: Failed during conversion to COFF: invalid or corrupt file "error.


Error Description:

1> Compiling resources ...
1> Compiling resource list ...
1> is linking ...
1>link:fatal Error LNK1123: Failed during transition to COFF: invalid or corrupt file
1> build log saved in "File://e:\helloc\shapefill V11\shapefill\debug\shapefill.log"
1>shapefill-1 a bug, 0 warnings
========== rebuild All: 0 succeeded, 1 failed, 0 skipped ==========


Solution:

The first step is to change the project-project Properties-Configuration Properties-connector-list file-embed list to "no". If it doesn't solve the problem, go to the second step.

Step Two: Check if the computer is a 64bit operating system, if so, continue with the following actions.
Find out if there are two Cvtres.exe.
C:\Program Files (x86) \microsoft Visual Studio 10.0\vc\bin\cvtres.exe
C:\Windows\Microsoft.NET\Framework\v4.0.30319\cvtres.exe
Right-click Properties-Details, view both version numbers, delete/rename older versions, or reset the path variable.

The root of the solution is the second step, after removing the old version of Cvtres.exe, you do not need to set the configuration every time.

Link:fatal Error LNK1123: Failed during transition to COFF: invalid or corrupt file

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.