Boost C++ Libraries: Ticket #2799: math float_advance causes link error for itrunc - missing include in boost/math/special_functions.next.hpp https://svn.boost.org/trac10/ticket/2799 <p> boost/math/special_functions/next.hpp </p> <p> doesn't include </p> <p> boost/math/special_functions/trunc.hpp </p> <p> and hence I get linker errors when only including the former and using boost::math::float_advance: </p> <p> main.cpp </p> <hr /> <p> #include &lt;boost/math/special_functions/next.hpp&gt; <em> including this prevents the linker error </em>#include &lt;boost/math/special_functions/trunc.hpp&gt; </p> <p> int main(int argc, char<strong> argv) { </strong></p> <blockquote> <p> double x = boost::math::float_advance(1.0,1); return 0; </p> </blockquote> <p> } reported by Jeffrey Hellrung and confirmed. </p> <p> Fix is to add #include trunc.hpp to next.hpp </p> <p> But this should have been detected? </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2799 Trac 1.4.3 John Maddock Thu, 26 Feb 2009 17:35:43 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2799#comment:1 https://svn.boost.org/trac10/ticket/2799#comment:1 <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> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/51455" title="Merges changes from Sandbox version: MPFR Support. New distributions: ...">[51455]</a>) Merges changes from Sandbox version: MPFR Support. New distributions: laplace, logistic and hypergeometric. Added PCH support to the Jamfiles for faster build times. Added C# usage example. Updated and regenerated docs. Also fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2799" title="#2799: Bugs: math float_advance causes link error for itrunc - missing include in ... (closed: fixed)">#2799</a> and updates the tests to catch this failure in future. </p> Ticket