Boost C++ Libraries: Ticket #4799: Linker error in math library - rint() missing on MS windows platform https://svn.boost.org/trac10/ticket/4799 <p> I tried solving this through the forum, but it seems to be a bug more than newbe problems. </p> <p> I am using BOOST to do math and have not been able to get the "findroot_demo.cpp" example of root finding to work. There seem to be a reference to rint(), which is not implemented in the C++ library for windows. How can I solve this - my understanding of BOOST is that it is cross-platform? </p> <blockquote> <p> 1&gt;------ Build started: Project: boostfindzero, Configuration: Debug Win32 ------ </p> </blockquote> <p> 1&gt;Compiling... 1&gt;findroot_demo.cpp 1&gt;Linking... 1&gt;findroot_demo.obj : error LNK2019: unresolved external symbol _rint referenced in function "public: static double <span class="underline">cdecl boost::numeric::interval_lib::detail::x86_rounding::to_int(double const &amp;)" (?to_int@x86_rounding@detail@interval_lib@numeric@boost@@SANABN@Z) 1&gt;D:\dokumenter\lvm_AM\Visual Studio 2008\Projects\boostfindzero\Debug\boostfindzero.exe : fatal error LNK1120: 1 unresolved externals 1&gt;Build log was saved at "<a class="ext-link" href="file://d:\dokumenter\lvm_AM\Visual"><span class="icon">​</span>file://d:\dokumenter\lvm_AM\Visual</a> Studio 2008\Projects\boostfindzero\boostfindzero\Debug\<a class="missing wiki">BuildLog</a>.htm" 1&gt;boostfindzero - 2 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== </span></p> <p> From what I can see in the source this is also a problem with BOOST 1.44.0 version. I am currently limited to the 1.36.0, but will upgrade if this is solved in the next version. </p> <p> Maybe BOOST developers should implement a rint() function for the MS Windows users? </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4799 Trac 1.4.3 John Maddock Fri, 29 Oct 2010 11:54:16 GMT <link>https://svn.boost.org/trac10/ticket/4799#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4799#comment:1</guid> <description> <p> I believe this is fixed in SVN Trunk (see <a class="ext-link" href="https://svn.boost.org/trac/boost/browser/trunk/boost/numeric/interval/detail/msvc_rounding_control.hpp"><span class="icon">​</span>https://svn.boost.org/trac/boost/browser/trunk/boost/numeric/interval/detail/msvc_rounding_control.hpp</a>), but unfortunately Boost.Interval hasn't been actively maintained for a while :-( </p> <p> I think it's probably too late to fix this in time for 1.45, but I'll try and get the fix into 1.46. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Mon, 07 Mar 2011 16:44:06 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/4799#comment:2 https://svn.boost.org/trac10/ticket/4799#comment:2 <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> Ticket