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

前端 未结 26 2795
误落风尘
误落风尘 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:50

    As of January 2014, for some reasons I got installed .NET Framework 4.5.1, I don't know if due to a third party software installation or to an automatic update.

    On January 29th, I got installed one component and I started receiving the

    LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt 
    

    message. At that time, I solved by avoiding the incremental link.

    On Jan. 31st, I got installed another component of .NET Framework 4.5.1 and the incremental link trick did not work anymore. I then installed the Visual Studio 2010 SP1, but afterwards the problem became:

    Error   6   error LNK1104: cannot open file 'msvcrtd.lib'. 
    

    I think the SP1 messed up my Visual Studio 2010 installation.

    So I uninstalled .NET Framework 4.5.1, installed .NET Framework 4.0 and uninstalled and then reinstalled Visual Studio 2010. That worked for me.

提交回复
热议问题