转换为 COFF 时失败:文件无效或损坏 [英] Failure during conversion to COFF: file invalid or corrupt

查看:26
本文介绍了转换为 COFF 时失败:文件无效或损坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在 VS2010 中构建一个简单的程序时,编译成功但当我尝试构建解决方案时,它给了我这个错误:

LINK:致命错误 LNK1123:转换为 COFF 期间失败:文件无效或损坏

我做错了什么?

解决方案

我遇到了这个问题,我用 这个线程解决了这个问题

一个>

禁用增量链接,转到

 项目属性->配置属性->链接器(通用)->启用增量链接 ->不(/增量:否)"

When I try building just a simple program into VS2010, compiling succeeds yet when I try to build the solution it gives me this error:

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

What am I doing wrong?

I had this issue and I solved it with this thread

disable incremental linking, by going to

    Project Properties 
       -> Configuration Properties 
           -> Linker (General) 
              -> Enable Incremental Linking -> "No (/INCREMENTAL:NO)"

这篇关于转换为 COFF 时失败:文件无效或损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆