Boost C++ Libraries: Ticket #1956: gcc43 doesn't compile boost/math/tr1.hpp https://svn.boost.org/trac10/ticket/1956 <p> It fails with (gfilt wraps g++-4.3.0) </p> <pre class="wiki"> "gfilt" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_MATH_TR1_DYN_LINK=1 -I"." -c -o "bin.v2/libs/math/build/gcc-4.3.0/debug/atanh.o" "libs/math/build/../src/tr1/atanh.cpp" In file included from libs/math/build/../src/tr1/atanh.cpp:7: ./boost/math/tr1.hpp: In function ‘bool boost::math::tr1::signbit(T)’: ./boost/math/tr1.hpp:608: error: there are no arguments to ‘ BOOST_STATIC_ASSERT’ that depend on a template parameter, so a declaration of ‘BOOST_STATIC_ASSERT’ must be available ./boost/math/tr1.hpp:608: error: ( if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) ./boost/math/tr1.hpp: In function ‘int boost::math::tr1::fpclassify(T)’: ... </pre><p> I bet this is due to </p> <pre class="wiki">#ifdef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS #include &lt;boost/static_assert.hpp&gt; #endif </pre><p> in boost/math/tools/promotion.hpp </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1956 Trac 1.4.3 John Maddock Tue, 27 May 2008 17:40:23 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1956#comment:1 https://svn.boost.org/trac10/ticket/1956#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> Yep, it's a missing #include </p> <p> Now fixed in SVN, I hope! </p> <p> John. </p> Ticket Maik Beckmann Tue, 27 May 2008 17:51:18 GMT <link>https://svn.boost.org/trac10/ticket/1956#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1956#comment:2</guid> <description> <p> It is, thanks. </p> <blockquote> <p> -- Maik </p> </blockquote> </description> <category>Ticket</category> </item> </channel> </rss>