LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
2015-09-02 14:25
513 查看
from:http://blog.csdn.net/junjiehe/article/details/16888197使用VisualStudio 编译链接中可能出现如下错误:LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt网上有如下解决方法:1. disable incremental linking
2. turning off "Embed Manifest"但是我使用这两种方法均不奏效.Issue root cause: 系统更新或软件升级中,造成有多于一个版本的 Utility: cvtres.exe
Project Properties -> Configuration Properties -> Linker (General) -> Enable Incremental Linking -> "No (/INCREMENTAL:NO)"
2. turning off "Embed Manifest"但是我使用这两种方法均不奏效.Issue root cause: 系统更新或软件升级中,造成有多于一个版本的 Utility: cvtres.exe
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cvtres.exe
C:\Windows\Microsoft.NET\Framework\v4.0.30319\cvtres.exe
而因不当造成VS目录下的cvtres.exe不在work.如果该Utinity在路径的前面,linker觉得需要转换一个.res文件为COFF对象格式,link将失败,显示error: LNK1123
方法: 对VS下旧的Utility cvtres.exe删除或者重命名.或者重新安排 PATH 变量.
参考文献:
http://stackoverflow.com/questions/10888391/error-link-fatal-error-lnk1123-failure-during-conversion-to-coff-file-inval
我用的是:删除“C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cvtres.exe”
相关文章推荐
- myslq修复表 is marked as crashed and should be repaired
- Roundcubemail简单安装配置
- 多线程调用epoll_wait()的线程安全问题分析 http://blog.csdn.net/lmh12506/article/details/7836827
- POJ 3735 Training little cats(矩阵快速幂)
- STL学习笔记之traits技术
- Smail 注入遇到的问题以及System.out
- A Presentation of the STL Vector Container
- 判断包含字符String.contains
- UVA 11374 Airport Express (最短路)
- RAID入门一页通,最全的RAID技术、原理图解
- hdu5319 Painter(模拟)
- HDU1239 Calling Extraterrestrial Intelligence Again (打表+暴力)
- [Leetcode]#219 Contains Duplicate II
- [Leetcode]#217 Contains Duplicate
- [Leetcode172]Factorial Trailing Zeroes
- Container With Most Water
- How to Use updateConstraints(什么时候该使用updateConstraints)
- string.contains
- 使用hmailserver搭建邮件服务器
- 使用 mdadm 管理 RAID 阵列