Boost C++ Libraries: Ticket #2392: [tr1][spirit][hash] Boost trunk +VC9 - autolinking libboost_math https://svn.boost.org/trac10/ticket/2392 <p> As described @ <a class="ext-link" href="http://thread.gmane.org/gmane.comp.lib.boost.devel/180769"><span class="icon">​</span>http://thread.gmane.org/gmane.comp.lib.boost.devel/180769</a>: </p> <p> Adding the &lt;boost/tr1/tr1&gt; directory to the include path and then building a project that includes headers such as &lt;boost/functional/hash.hpp&gt; or &lt;boost/spirit/include/classic_core.hpp&gt; results in it trying to autolink to libboost_math_c99-vc90-mt-gd-1_37.lib. </p> <p> Doesn't seem like it should be doing that? </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2392 Trac 1.4.3 John Maddock Fri, 10 Oct 2008 11:33:03 GMT status changed https://svn.boost.org/trac10/ticket/2392#comment:1 https://svn.boost.org/trac10/ticket/2392#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> Unfortunately, if you enable TR1 &lt;cmath&gt; support, then anything that includes that header will want to link to a TR1 library :-( </p> <p> I'll look into disabling TR1 support where it clearly isn't needed however. </p> <p> Cheers, John. </p> Ticket John Maddock Fri, 10 Oct 2008 16:10:07 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2392#comment:2 https://svn.boost.org/trac10/ticket/2392#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/49254" title="Change includes of &lt;cmath&gt; to &lt;boost/config/no_tr1/config.hpp&gt;. ...">[49254]</a>) Change includes of &lt;cmath&gt; to &lt;boost/config/no_tr1/config.hpp&gt;. </p> <p> Previously if Boost.TR1 was in the include path then including &lt;cmath&gt; pulls in all the new TR1 math functions, which in turn also requires linking to an external library. With auto-linking support this requires that library to have been built and be present in the library search path, even if the actual library under use is header only. </p> <p> Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2392" title="#2392: Bugs: [tr1][spirit][hash] Boost trunk +VC9 - autolinking libboost_math (closed: fixed)">#2392</a>. </p> Ticket John Maddock Mon, 13 Oct 2008 09:00:09 GMT <link>https://svn.boost.org/trac10/ticket/2392#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2392#comment:3</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/49314" title="Merge fixes from Trunk. Fixes #2392. Change includes of &lt;cmath&gt; to ...">[49314]</a>) Merge fixes from Trunk. </p> <p> Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2392" title="#2392: Bugs: [tr1][spirit][hash] Boost trunk +VC9 - autolinking libboost_math (closed: fixed)">#2392</a>. </p> <p> Change includes of &lt;cmath&gt; to &lt;boost/config/no_tr1/config.hpp&gt;. </p> <p> Previously if Boost.TR1 was in the include path then including &lt;cmath&gt; pulls in all the new TR1 math functions, which in turn also requires linking to an external library. With auto-linking support this requires that library to have been built and be present in the library search path, even if the actual library under use is header only. </p> </description> <category>Ticket</category> </item> </channel> </rss>