Lnk1123: failed during coff conversion: The file is invalid or corrupt

Source: Internet
Author: User

This error occurs when compiling a C ++ project with vs2010:

Lnk1123: failed during coff conversion: The file is invalid or corrupt

Solution 1: (this method is better and can solve problems when using QT)

Copy cvtres.exe under the c: \ windows \ winsxs \ x86_netfx-cvtres_for_vc_and_vb_b03f5f7f11d50a3a_6.1.7601.17514_none_ba1c770af0b2031b directory to the C: \ Program Files \ Microsoft Visual Studio 10.0 \ Vc \ bin directory and replace it directly.

 

Solution 2:

 

Is the problem of embedding the list, so the following operations are performed on the project and all dependent projects
Right-click a project and choose "Project Properties"> "configuration properties"> "configuration tool"> "input" and "output"> "embedded List". Select "no".

1> link: Fatal error lnk1123: failed during coff conversion: Invalid or corrupt file
1> cvtres: Fatal error cvt1100: duplicate resources. Type: manifest, name: 1, language: 0x0409

This is caused by log files.

Project \ properties \ configuration properties \ Configuration tool \ Input and Output \ embedded list: changed from "yes" to "no ".

Or set

Project \ properties \ configuration properties \ linker \ configuration file \ generate a list: It turns out to be "yes" and changed to "no ".

 

Lnk1123: failed during coff conversion: The file is invalid or corrupt

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.