3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>Why MSVC 2010 fails to link the library with error LNK1123: failure during conversion to COFF: file invalid or corrupt?</title>
5 <link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7 <link rel="home" href="../../index.html" title="Chapter 1. Boost.Log v2">
8 <link rel="up" href="../rationale.html" title="Rationale and FAQ">
9 <link rel="prev" href="namespace_mangling.html" title="Why my application fails to link with Boost.Log? What's the fuss about library namespaces?">
10 <link rel="next" href="../reference.html" title="Reference">
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13 <table cellpadding="2" width="100%"><tr><td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td></tr></table>
15 <div class="spirit-nav">
16 <a accesskey="p" href="namespace_mangling.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../rationale.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../reference.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
19 <div class="titlepage"><div><div><h3 class="title">
20 <a name="log.rationale.msvc_link_fails_lnk1123"></a><a class="link" href="msvc_link_fails_lnk1123.html" title="Why MSVC 2010 fails to link the library with error LNK1123: failure during conversion to COFF: file invalid or corrupt?">Why MSVC 2010
21 fails to link the library with error LNK1123: failure during conversion to
22 COFF: file invalid or corrupt?</a>
23 </h3></div></div></div>
25 If you have several versions of Visual Studio installed and trying to build
26 the library with Visual Studio 2010, the compilation may fail with linker
27 error LNK1123. This seems to be a <a href="http://stackoverflow.com/questions/10888391/link-fatal-error-lnk1123-failure-during-conversion-to-coff-file-invalid-or-c" target="_top">known
28 problem</a> caused by some conflict between Visual Studio 2010 and .NET
29 Framework 4.5, which is installed with Visual Studio 2012.
32 The suggested solution is to upgrade Visual Studio 2010 to Visual Studio
33 2010 SP1 or overwrite <code class="literal">"C:\Program Files (x86)\Microsoft Visual
34 Studio 10.0\VC\bin\cvtres.exe"</code> with the one of Visual Studio
38 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
39 <td align="left"></td>
40 <td align="right"><div class="copyright-footer">Copyright © 2007-2014 Andrey Semashev<p>
41 Distributed under the Boost Software License, Version 1.0. (See accompanying
42 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>).
47 <div class="spirit-nav">
48 <a accesskey="p" href="namespace_mangling.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../rationale.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../reference.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>