VS 2010 - error LNK1123: failure during conversion to COFF: file invalid or corrupt

程序在VS2010 调试通过后,在另一台机器上,debug模式下编译出错,但Release模式顺利通过。debug模式下的错误为LINK:fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt。

在这里找到解决方案(http://social.msdn.microsoft.com/Forums/vstudio/en-US/eb4a7699-0f3c-4701-9790-199787f1b359/vs-2010-error-lnk1123-failure-during-conversion-to-coff-file-invalid-or-corrupt?forum=vcgeneral), 特此记录

1. 重装VS2010 (没试)

2. 设置“Enable Incremental Linking” to /No(/INCREMENTAL:NO) in property page->configuration properties->Linker->General.

我用第二种方法设置后成功通过编译,特此记录。


 
 

你可能感兴趣的:(VS 2010 - error LNK1123: failure during conversion to COFF: file invalid or corrupt)