Visual Studio 2010 >LINK : fatal error LNK1123: failure during conversion to COFF: file in

其实我的机子上有一个vs2010,有一个vs2012,express,还有一个绿色的vc6.

.NET好像是4.0的。




==========

http://msdn.microsoft.com/en-us/library/7dz62kfh.aspx

Linker Tools Error LNK1123

Visual Studio 2013
6 out of 11 rated this helpful Rate this topic
failure during conversion to COFF: file invalid or corrupt                    塔机配件大全

Input files must have the Common Object File Format (COFF) format. If an input file is not COFF, the linker automatically tries to convert 32-bit OMF objects to COFF, or runs CVTRES.EXE to convert resource files. This message indicates that the linker could not convert the file. This can also occur when using an incompatible version of CVTRES.EXE from another installation of Visual Studio, the Windows Development Kit, or .NET Framework.

Note Note

If you are running an earlier version of Visual Studio, automatic conversion may not be supported.

To fix the problem

  • Apply all service packs and updates for your version of Visual Studio. This is particularly important for Visual Studio 2010.          塔机配件大全

  • Try building with incremental linking disabled. On the menu bar, choose ProjectProperties. In the Property Pages dialog box, expand Configuration PropertiesLinker. Change the value ofEnable Incremental Linking to No.

  • Verify that the version of CVTRES.EXE found first in your PATH environment variable matches the version of the build tools, or the version of the Platform Toolset, used by your project.

  • Make sure that the file type is valid. For example, make sure that an OMF object is 32-bit and not 16-bit. For more information, see .Obj Files as Linker Input and Microsoft PE and COFF Specification.

  • Make sure that the file is not corrupt. Rebuild it, if necessary.

===========

参考http://www.cnblogs.com/Michael282694/p/LNK1123.html


VS2010在经历一些更新后,建立Win32 Console Project时会出“error LNK1123” 错误,解决方案为将:项目|项目属性|配置属性|清单工具|输入和输出|嵌入清单的选项“是”改为“否”即可,但是每新建一个项目都要这样设置一次。

  在建立VS2010 Win32 Project项目时,按照上面解决方案依然发生了“error LNK1123”错误,经过上网查资料,解决方案为:
  第一步:与上相同。
  第二步:将:项目|项目属性|配置属性|连接器|清单文件|嵌入清单选项“是”改为“否”。
  第三步:一般计算机经过上两步设置就能解决问题了,但是如果还有问题,那就按一下方法解决:
  计算机是否为64bit操作系统,如是,继续2。
  查找是否有两个cvtres.exe。一个是C:\Program Files(x86)\Microsoft Visual Studio 10.0\vc\bin\cvtres.exe, 另一个是C:\Windows\Microsoft.NET\Framework\v
4.0.30319\cvtres.exe。右键属性|详细信息 查看两者版本号,删除/重命名较旧的版本,或者重新设置Path变量。

  意外的是,治本的办法是第三步,删除旧版本的cvtres.exe后,就不需要每次都设置配置了。

『座右铭:有梦想谁都了不起』 『得失随缘,心无增减』 『小成靠智,大成靠德』 『Workaholic, focus on DM/CV/ML/PR, etc. CSer @ Northwestern Polytechnical University (NWPU), Algorithm Engineer Intern @ Alibaba Group.』

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

等风来不如迎风去

你的鼓励是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值