# 安装VS2012后使用VS2010:fatal error LNK 1123

_LINK : fatal error LNK1123: faiure during conversion to COFF: file invalid or corrupt_

By debugging with the /VERBOSE linker option I found the linker was writing that error message when it tried to invoke cvtres and it failed. It turned out that I had two versions of this untility in my path. One at C:\Program Files(x86)\Microsoft Visual Studio 10.0\VC\BIN\cvtres.exe and one at C:\Windows\Microsoft.NET\Framework\v4.0.30319\cvtres.exe. After VS2012 install, the VS2012 version of cvtres.exe will no longer work. If that's the first one in your path, and the linker decides it needs to convert a .res file to COFF object format, the link will fail with LNK1123.

First created: 2013-06-29 00:00:00
Last updated: 2022-12-11 Sun 12:49
Power by Emacs 27.1 (Org mode 9.4.4)