Error 'LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt' after installing Visual Studio 2012 Release Preview

前端 未结 26 2474
误落风尘
误落风尘 2020-11-22 07:45

I\'ve installed Visual Studio 2012 Release Preview, and it appears to be fine, but now when I try to use Visual Studio 2010 to compile C++ projects, I get the following erro

26条回答
  •  忘了有多久
    2020-11-22 08:00

    This MSDN thread explains how to fix it.

    To summarize:

    • Either disable incremental linking, by going to

      Project Properties 
         -> Configuration Properties 
             -> Linker (General) 
                -> Enable Incremental Linking -> "No (/INCREMENTAL:NO)"
      
    • or install VS2010 SP1.

    Edits (@CraigRinger): Note that installing VS 2010 SP1 will remove the 64-bit compilers. You need to install the VS 2010 SP1 compiler pack to get them back.

    This affects Microsoft Windows SDK 7.1 for Windows 7 and .NET 4.0 as well as Visual Studio 2010.

提交回复
热议问题