Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

Visual Studio 2010: Conversion to COFF failure

📅 2012-Sep-13 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

[caption id="attachment_2784" align="aligncenter" width="600"][ ](http://codeyarns.files.wordpress.com/2012/09/20120912-coff-error.png) Conversion to COFF failure.[/caption]

Problem

I installed Visual Studio 2012. After that when I tried to open an older C++ project in Visual Studio 2010 and compile it, I get this error:

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

Solution

This is an error caused by the installation of Visual Studio 2012. To fix this, just download and install the Visual Studio 2010 Service Pack 1. The SP1 install takes a while. The error should be gone after that.

Tried with: Visual Studio 2010, Visual Studio 2012 and Windows 7 x64