Boost C++ Libraries: Ticket #2513: rint not present in Visual Studio 2008 https://svn.boost.org/trac10/ticket/2513 <p> The function rint is not present in the libraries of Visual Studio 2008. </p> <p> I propose, that line 28 in msvc_rounding_control.hpp </p> <p> extern "C" { double rint(double); } </p> <p> is replaced with John Maddock's workaround from the boost-users mailing list: </p> <p> #if BOOST_MSVC &lt; 1400 extern "C" { double rint(double); } #else inline double rint(double x) { _asm FLD [x] ; _asm FRNDINT ; <em>_asm RET ; } #endif </em></p> <p> since certain constructs simply do not link right now (the linker complains that the function rint is missing). </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2513 Trac 1.4.3 Marshall Clow Fri, 29 Jan 2010 18:01:36 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2513#comment:1 https://svn.boost.org/trac10/ticket/2513#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/59350" title="Applied patches to fix #2512 and #2513">[59350]</a>) Applied patches to fix <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2512" title="#2512: Bugs: interval cosh: wrong result if interval contains 0 (but is not ... (closed: fixed)">#2512</a> and <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2513" title="#2513: Bugs: rint not present in Visual Studio 2008 (closed: fixed)">#2513</a> </p> Ticket