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