After installing VS2012, an error occurred while using VS2010
LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
The solution is simple, as follows:
To summarize:
Either disable incremental linking, by going to
Project Properties
-> Configuration Properties
-> Linker (General)
-> Enable Incremental Linking -> "No (/INCREMENTAL:NO)"
or install VS2010 SP1.
VS2010 SP1 patch download address: http://www.microsoft.com/en-us/download/details.aspx?id=23691
Reference:
http://stackoverflow.com/questions/10888391/link-fatal-error-lnk1123-failure-during-conversion-to-coff-file-invalid-or-c