Boost C++ Libraries: Ticket #10922: Fails to link python-extension project when msvc target is used https://svn.boost.org/trac10/ticket/10922 <p> For <code>python-extension</code> boost.build project, using target msvc, on link stage the command line is generated incorrectly and the build fails. </p> <p> Generated command line: </p> <pre class="wiki">link /NOLOGO /INCREMENTAL:NO /DLL /NOENTRY /DEBUG /MACHINE:X86 /MANIFEST /subsystem:console /out:"bin\msvc-12.0\debug\threading-multi\mytest.pyd" /IMPLIB:"bin\msvc-12.0\debug\threading-multi\mytest.pdb" /LIBPATH:"C:\Program Files (x86)\Python34\libs" @"bin\msvc-12.0\debug\threading-multi\mytest.pyd.rsp" </pre><p> Error displayed: <code>LINK : fatal error LNK1207: incompatible PDB format in 'D:\Temp\test\bin\msvc-12.0\debug\threading-multi\mytest.pdb'; delete and rebuild</code> </p> <p> Note the <code>IMPLIB</code> part referencing the <code>.pdb</code> file instead of the <code>.lib</code> file. </p> <p> Steps to reproduce: </p> <ul><li>unpack the attachment </li><li>copy the boost lib to <code>boost</code> directory </li><li>copy boost.build to <code>boost-build</code> directory </li><li>run <code>boost-build\bin\b2</code> </li><li>or <code>boost-build\bin\b2 target=msvc-12</code> </li></ul><p> Tested with msvc 10 and 12. Standard shared library/dll project compiles fine. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10922 Trac 1.4.3 Pavel Machyniak <machyniak@…> Fri, 09 Jan 2015 12:28:55 GMT attachment set https://svn.boost.org/trac10/ticket/10922 https://svn.boost.org/trac10/ticket/10922 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test.zip</span> </li> </ul> Ticket Steven Watanabe Tue, 23 Jan 2018 01:14:01 GMT <link>https://svn.boost.org/trac10/ticket/10922#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10922#comment:1</guid> <description> <p> The reason is that &lt;suppress-import-lib&gt;true disables the import library, but msvc.link.dll assumes that the import library is the second target (which is actually the .pdb). </p> </description> <category>Ticket</category> </item> </channel> </rss>