您的位置:首页 > 大数据 > 人工智能

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

2014-03-11 10:17 579 查看
使用vs2010编译c++工程时晕倒一个问题:

error LNK1123: failure during conversion to COFF: file invalid or corrupt
一致不知道什么原因,也无法解决。
在同事的机器上竟然都能编译通过,心想肯定是环境问题了。
果然,google了一把(就是比百度要强悍哈),如下是相同问题。
http://stackoverflow.com/questions/12267158/failure-during-conversion-to-coff-file-invalid-or-corrupt
看到人家的答复,我的问题也终于浮出水面。
我的环境是vs2008、vs2010、vs2012(已经卸载)、vs2013,也是.net FrameWork 4.5的环境,应该就是这个问题吧,就像人家回复的一条:
Do you have Visual Studio 2012 installed as well? If so, 2012 stomps your 2010 IDE, possibly because of compatibility issues with .NET 4.5 and .NET 4.0.
重点就是红色背景这个单词了,哈哈・・・・

当然,因为工作原因,我是不能卸载vs2013和.net4.5的。还好,下边又出现一个回复,vs2010 sp1。这就好像是救命稻草一样,虽然耗时,唯有一试方能知晓最终结果。
Had to install VS SP1 in order to get it to work again for myself. Lame microsoft.
哈哈,我在安装了vs2010 sp1之后果然就都能编译通过了。

说到底,微软对自家产品的向下兼容性确实问题多多啊
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐