3 <meta http-equiv=
"Content-Type" content=
"text/html; charset=US-ASCII">
4 <title>Compilers
</title>
5 <link rel=
"stylesheet" href=
"../math.css" type=
"text/css">
6 <meta name=
"generator" content=
"DocBook XSL Stylesheets V1.77.1">
7 <link rel=
"home" href=
"../index.html" title=
"Math Toolkit 2.5.1">
8 <link rel=
"up" href=
"../overview.html" title=
"Chapter 1. Overview">
9 <link rel=
"prev" href=
"error_handling.html" title=
"Error Handling">
10 <link rel=
"next" href=
"config_macros.html" title=
"Configuration Macros">
12 <body bgcolor=
"white" text=
"black" link=
"#0000FF" vlink=
"#840084" alink=
"#0000FF">
13 <table cellpadding=
"2" width=
"100%"><tr>
14 <td valign=
"top"><img alt=
"Boost C++ Libraries" width=
"277" height=
"86" src=
"../../../../../boost.png"></td>
15 <td align=
"center"><a href=
"../../../../../index.html">Home
</a></td>
16 <td align=
"center"><a href=
"../../../../../libs/libraries.htm">Libraries
</a></td>
17 <td align=
"center"><a href=
"http://www.boost.org/users/people.html">People
</a></td>
18 <td align=
"center"><a href=
"http://www.boost.org/users/faq.html">FAQ
</a></td>
19 <td align=
"center"><a href=
"../../../../../more/index.htm">More
</a></td>
22 <div class=
"spirit-nav">
23 <a accesskey=
"p" href=
"error_handling.html"><img src=
"../../../../../doc/src/images/prev.png" alt=
"Prev"></a><a accesskey=
"u" href=
"../overview.html"><img src=
"../../../../../doc/src/images/up.png" alt=
"Up"></a><a accesskey=
"h" href=
"../index.html"><img src=
"../../../../../doc/src/images/home.png" alt=
"Home"></a><a accesskey=
"n" href=
"config_macros.html"><img src=
"../../../../../doc/src/images/next.png" alt=
"Next"></a>
26 <div class=
"titlepage"><div><div><h2 class=
"title" style=
"clear: both">
27 <a name=
"math_toolkit.compilers_overview"></a><a class=
"link" href=
"compilers_overview.html" title=
"Compilers">Compilers
</a>
28 </h2></div></div></div>
30 This section contains some information about how various compilers work with
31 this library. It is not comprehensive and updated experiences are always welcome.
32 Some effort has been made to suppress unhelpful warnings but it is difficult
33 to achieve this on all systems.
36 <a name=
"math_toolkit.compilers_overview.supported_tested_compilers"></a><p class=
"title"><b>Table
 1.9.
 Supported/Tested Compilers
</b></p>
37 <div class=
"table-contents"><table class=
"table" summary=
"Supported/Tested Compilers">
57 Has long double support
88 We aim to keep our headers warning free at level
4 with this compiler.
113 We aim to keep our headers warning free at level
4 with this compiler.
114 However, The tests cases tend to generate a lot of warnings relating
115 to numeric underflow of the test data: these are harmless.
140 We aim to keep our headers warning free with -Wall with this compiler.
165 We aim to keep our headers warning free with -Wall with this compiler.
168 Long double support has been disabled because there are no native
169 long double C std library functions available.
181 Borland C++
5.8.2 (Developer studio
2006)
191 We have only partial compatibility with this compiler:
194 Long double support has been disabled because the native long double
195 C standard library functions really only forward to the double versions.
196 This can result in unpredictable behaviour when using the long double
197 overloads: for example
<code class=
"computeroutput"><span class=
"identifier">sqrtl
</span></code>
198 applied to a finite value, can result in an infinite result.
201 Some functions still fail to compile, there are no known workarounds
209 Windows
7/Netbeans
7.2
224 Spot examples OK. Expect all tests to compile and run OK.
236 GNU C++
3.4 and later
249 We aim to keep our headers warning free with -Wall with this compiler.
283 Intel C++
10.0 and later
296 We aim to keep our headers warning free with -Wall with this compiler.
297 However, The tests cases tend to generate a lot of warnings relating
298 to numeric underflow of the test data: these are harmless.
310 Intel C++
8.1 and
9.1
323 Long double support has been disabled with these compiler releases
324 because calling the standard library long double math functions can
325 result in a segfault. The issue is Linux distribution and glibc version
326 specific and is Intel bug report #
409291. Fully up to date releases
327 of Intel
9.1 (post version l_cc_c_9.1
.046) shouldn't have this problem.
328 If you need long double support with this compiler, then comment
329 out the define of BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS at line
330 55 of
<a href=
"../../../../../boost/math/tools/config.hpp" target=
"_top">boost/math/tools/config.hpp
</a>.
333 We aim to keep our headers warning free with -Wall with this compiler.
334 However, The tests cases tend to generate a lot of warnings relating
335 to numeric underflow of the test data: these are harmless.
357 Some tests involving conceptual checks fail to build, otherwise there
358 appear to be no issues.
380 Some tests involving function overload resolution fail to build,
381 these issues should be rarely encountered in practice.
403 Some tests involving function overload resolution fail to build,
404 these issues should be rarely encountered in practice.
429 We aim to keep our headers warning free with -Wall with this compiler.
476 Unfortunately this compiler emits quite a few warnings from libraries
477 upon which we depend (TR1, Array etc).
506 Apple Mac OS X, Intel
528 Apple Mac OS X, PowerPC
546 Long double support has been disabled on this platform due to the
547 rather strange nature of Darwin's
106-bit long double implementation.
548 It should be possible to make this work if someone is prepared to
571 All tests expected to be OK.
593 All tests pass except for our fpclassify tests which fail due to
594 a bug in
<code class=
"computeroutput"><span class=
"identifier">std
</span><span class=
"special">::
</span><span class=
"identifier">numeric_limits
</span></code>, the bug effects
595 the test code, not fpclassify itself. The IBM compiler group are
596 aware of the problem.
603 <br class=
"table-break"><div class=
"table">
604 <a name=
"math_toolkit.compilers_overview.unsupported_compilers"></a><p class=
"title"><b>Table
 1.10.
 Unsupported Compilers
</b></p>
605 <div class=
"table-contents"><table class=
"table" summary=
"Unsupported Compilers">
631 Borland C++
5.9.2 (Borland Developer Studio
2007)
650 <br class=
"table-break"><p>
651 If your compiler or platform is not listed above, please try running the regression
652 tests: cd into boost-root/libs/math/test and do a:
654 <pre class=
"programlisting"><span class=
"identifier">bjam
</span> <span class=
"identifier">mytoolset
</span>
657 where
"mytoolset" is the name of the
<a href=
"http://www.boost.org/doc/html/bbv2.html" target=
"_top">Boost.Build
</a>
658 toolset used for your compiler. The chances are that
<span class=
"bold"><strong>many
659 of the accuracy tests will fail at this stage
</strong></span> - don't panic - the
660 default acceptable error tolerances are quite tight, especially for long double
661 types with an extended exponent range (these cause more extreme test cases
662 to be executed for some functions). You will need to cast an eye over the output
663 from the failing tests and make a judgement as to whether the error rates are
667 <table xmlns:
rev=
"http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width=
"100%"><tr>
668 <td align=
"left"></td>
669 <td align=
"right"><div class=
"copyright-footer">Copyright
© 2006-
2010,
2012-
2014 Nikhar Agrawal,
670 Anton Bikineev, Paul A. Bristow, Marco Guazzone, Christopher Kormanyos, Hubert
671 Holin, Bruno Lalande, John Maddock, Jeremy Murphy, Johan R
åde, Gautam Sewani,
672 Benjamin Sobotta, Thijs van den Berg, Daryle Walker and Xiaogang Zhang
<p>
673 Distributed under the Boost Software License, Version
1.0. (See accompanying
674 file LICENSE_1_0.txt or copy at
<a href=
"http://www.boost.org/LICENSE_1_0.txt" target=
"_top">http://www.boost.org/LICENSE_1_0.txt
</a>)
679 <div class=
"spirit-nav">
680 <a accesskey=
"p" href=
"error_handling.html"><img src=
"../../../../../doc/src/images/prev.png" alt=
"Prev"></a><a accesskey=
"u" href=
"../overview.html"><img src=
"../../../../../doc/src/images/up.png" alt=
"Up"></a><a accesskey=
"h" href=
"../index.html"><img src=
"../../../../../doc/src/images/home.png" alt=
"Home"></a><a accesskey=
"n" href=
"config_macros.html"><img src=
"../../../../../doc/src/images/next.png" alt=
"Next"></a>