VS2010_【error】LINK1123: failure during conversion to COFF: file invalid or corrupt
来源:互联网 发布:mac压缩pdf文件大小 编辑:程序博客网 时间:2024/06/05 15:07
转载于:http://blog.csdn.net/xiaowei_cqu
未经允许请勿用于商业用途
在一台新的win7 64位电脑上装了VS2010,每运行一个简单的程序总是报 error LINK1123: failure during conversion to COFF: file invalid or corrupt 的错误。
通过这篇文章发现问题及解决方法:
这个错误是因为采用incremental linking(增量式链接)导致的,可以通过禁止工程中incremental linking的选项避免这个问题。具体操作:
Project(项目)->Properties(属性)->Linker(连接器)->Gerneral(常规)->Enable Incremental Linking(启动增量链接),把 Yes (/INCREMENTAL) 改为 No (/INCREMENTAL:NO) 即可。
上述问题只有在debug版本下才会出现的,是因为release版本会默认关闭增量连接而debug版本默认是启动增量链接的。
incremental linking 是为了节省编译所用时间,加快编译速度。至于为什么会有问题,应该是VS工程的一个BUG。
0 0
- VS2010_【error】LINK1123: failure during conversion to COFF: file invalid or corrupt
- LINK1123:failure during conversion to COFF:file invalid or corrupt
- LINK1123:failure during conversion to COFF:file invalid or corrupt
- LINK1123:failure during conversion to COFF:file invalid or corrupt
- LINK1123:failure during conversion to COFF:file invalid or corrupt
- LINK1123:failure during conversion to COFF:file invalid or corrupt
- LINK1123:failure during conversion to COFF:file invalid or corrupt
- LINK1123:failure during conversion to COFF:file invalid or corrupt
- LINK1123:failure during conversion to COFF:file invalid or corrupt
- LINK1123:failure during conversion to COFF:file invalid or corrupt
- LINK1123:failure during conversion to COFF:file invalid or corrupt
- LINK1123:failure during conversion to COFF:file invalid or corrupt
- 【error】LINK1123: failure during conversion to COFF: file invalid or corrupt
- fatal error LINK1123:failure during conversion to COFF:file invalid or corrupt
- fatal error LINK1123:failure during conversion to COFF:file invalid or corrupt
- 原创血泪教训【error】LINK1123: failure during conversion to COFF: file invalid or corrupt
- 【error】LINK1123: failure during conversion to COFF: file invalid or corrupt
- fatal error LINK1123:failure during conversion to COFF:file invalid or corrupt
- 这才是学习Linux的正确姿势
- 发送短信的SmsUtil
- Google悄悄开发的全新操作系统 Fuchsia
- Android总结
- 数据库的整理摘录
- VS2010_【error】LINK1123: failure during conversion to COFF: file invalid or corrupt
- JSON 数据格式
- 基于jquery实现日历签到功能
- 【ERROR】org.apache.catalina.core.StandardWrapperValve invoke(Tomcat servlet结合使用)
- 二元运算符“==”与方法equals()
- 浏览器实时刷新
- xcode更新到8后出现黑底白苹果
- 《How Tomcat Works》读书笔记(一)
- 服务化介绍 和 快速入门