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

前端 未结 26 2391
误落风尘
误落风尘 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 07:53

    For those of you looking for a solution for this problem with the OpenGL SuperBible 6th source code samples, the solution is building in Release instead of Debug. All projects have disabled the incremental linking option in the Release version.

    0 讨论(0)
  • 2020-11-22 07:54

    I have not installed Visual Studio 2012, but I still got this error in Visual Studio 2010. I got this resolved after installing Visual Studio 2010 SP1.

    0 讨论(0)
  • 2020-11-22 07:56

    I set Enable Incremental Linking to "No (/INCREMENTAL:NO)" and it doesn't work for me.

    Next I've changed:

    Project Properties 
       -> Configuration Properties 
           -> General
              -> Platform Toolset -> "Visual Studio 2012 (v110)"
    

    and it works for me :)

    0 讨论(0)
  • 2020-11-22 07:57

    It didn't work for me after Enable Incremental Linking -> "No (/INCREMENTAL:NO)", but it works for me after I deleted the rc file.

    0 讨论(0)
  • 2020-11-22 07:58

    I solved this problem eventually by doing a full uninstall of VS2012 RC, followed by a full uninstall of VS2010, then a reinstall from scratch of VS2010.

    It took forever, but I'm now able to compile C++ projects in VS2010 again.

    0 讨论(0)
  • 2020-11-22 07:58

    To summarize:

    Step1
    
    Project Properties 
       -> Configuration Properties 
           -> Linker (General) 
              -> Enable Incremental Linking -> "No (/INCREMENTAL:NO)"
    

    if step1 not work, do Step2

    Project Properties 
       -> Configuration Properties 
           -> Manifest Tool (Input and Output) 
              -> Enable Incremental Linking -> "No"
    

    if step2 not work, do Step3 Copy file one of:

    1. C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\cvtres.exe
    2. C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\cvtres.exe
    3. C:\Program Files (x86)\Microsoft Visual Studio 13.0\VC\bin\cvtres.exe

      Then, replace to C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\cvtres.exe With me, do 3 step it work

    0 讨论(0)
提交回复
热议问题