VS2010 (32-bit Win7 system), compile with error: "VS2010 LNK1123: Failed during transition to COFF: invalid or corrupt file". Solutions found on the Web:
Method One: Go directly to the steps: Project →** properties → configuration properties → inventory tools → input/output → embed list, change this option from Yes to No.
Shortcomings, each new project to be re-modified, too troublesome!
Method Two: Replace the Cvtres.exe with the new version.
Step: Add C:\Windows\winsxs\x86_netfx-cvtres_for_vc_and_vb_b03f5f7f11d50a3a_6.1.7601.17514_none_ Copy the Cvtres.exe file from the ba1c770af0b2031b directory to: Install directory \microsoft Replace the original Cvtres.exe in Visual Studio 10.0\vc\bin. If you are not assured you can first back up the original Cvtres.exe file. The pro-test is effective.
c++:vs2010 LNK1123: Failed during transition to COFF: invalid or corrupt file