Boost C++ Libraries: Ticket #2140: Building static library Boost.thread for GCC under Windows https://svn.boost.org/trac10/ticket/2140 <p> The command bjam --toolset=gcc --with-thread --layout=system stage typed in a cmd.exe windows command prompt does not produce libboost_thread-mt.a Here's what I got in stage\lib: boost_thread-mt-d.dll boost_thread-mt-d.lib boost_thread-mt.dll boost_thread-mt.lib libboost_thread-mt-d.lib libboost_thread-mt-s.lib libboost_thread-mt-sd.lib libboost_thread-mt.lib But g++ won't statically link with .lib files. </p> <p> gcc (GCC) 3.4.5 (mingw special) OS: Windows Vista Family Premium 32bits SP1 Processor: AMD Athlon 64 X2 4000+, but you probably don't care. </p> <p> I followed the instruction from the windows install boost webpage... </p> <p> Thanks for your attention. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2140 Trac 1.4.3 Arnaud Cheritat <cheritat@…> Tue, 22 Jul 2008 22:19:22 GMT <link>https://svn.boost.org/trac10/ticket/2140#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2140#comment:1</guid> <description> <p> The command <br /> bjam --toolset=gcc --with-thread --layout=system stage<br /> typed in a cmd.exe windows command prompt does not produce libboost_thread-mt.a <br /> Here's what I got in stage\lib:<br /> boost_thread-mt-d.dll<br /> boost_thread-mt-d.lib <br /> boost_thread-mt.dll<br /> boost_thread-mt.lib<br /> libboost_thread-mt-d.lib<br /> libboost_thread-mt-s.lib<br /> libboost_thread-mt-sd.lib<br /> libboost_thread-mt.lib<br /> But g++ won't statically link with .lib files. </p> <p> gcc (GCC) 3.4.5 (mingw special)<br /> OS: Windows Vista Family Premium 32bits SP1<br /> Processor: AMD Athlon 64 X2 4000+, but you probably don't care. </p> <p> I followed the instruction from the windows install boost webpage... </p> <p> Thanks for your attention. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Tue, 08 Jun 2010 12:27:56 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/2140#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2140#comment:2</guid> <description> <p> When I use mingw the libs that are linked are dll and .lib. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Wed, 17 Nov 2010 21:52:43 GMT</pubDate> <title>cc set https://svn.boost.org/trac10/ticket/2140#comment:3 https://svn.boost.org/trac10/ticket/2140#comment:3 <ul> <li><strong>cc</strong> <span class="trac-author">viboes</span> added </li> </ul> <p> Isn't this a bug on bjam? </p> Ticket viboes Fri, 26 Nov 2010 22:41:17 GMT cc deleted https://svn.boost.org/trac10/ticket/2140#comment:4 https://svn.boost.org/trac10/ticket/2140#comment:4 <ul> <li><strong>cc</strong> <span class="trac-author">viboes</span> removed </li> </ul> <p> Does the problem appear with other libraries? </p> Ticket viboes Sun, 04 Dec 2011 18:24:47 GMT component, milestone changed https://svn.boost.org/trac10/ticket/2140#comment:5 https://svn.boost.org/trac10/ticket/2140#comment:5 <ul> <li><strong>component</strong> <span class="trac-field-old">thread</span> → <span class="trac-field-new">Building Boost</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.36.0</span> → <span class="trac-field-new">To Be Determined</span> </li> </ul> Ticket René Rivera Wed, 07 Dec 2011 02:59:00 GMT <link>https://svn.boost.org/trac10/ticket/2140#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2140#comment:6</guid> <description> <p> This bug doesn't actually have enough information for us to duplicate it. We need to know the command lines use for trying to link against the compiled Boost. I say this, because last I checked (long ago), mingw would link to lib*.lib files just fine. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Wed, 13 Mar 2013 17:03:14 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/2140#comment:7 https://svn.boost.org/trac10/ticket/2140#comment:7 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> This is no longer applicable, as the library extensions for MinGW were changed to .a and .dll.a a while ago. </p> Ticket