Boost C++ Libraries: Ticket #7500: system_error.hpp doesn't compile without exceptions https://svn.boost.org/trac10/ticket/7500 <p> Compiling with gcc flag <strong>-fno-exceptions</strong> failed: </p> <pre class="wiki">..\boost_1_51_0\boost\system\system_error.hpp:70: error: exception handling disabled, use -fexceptions to enable </pre><p> code: </p> <pre class="wiki"> inline const char * system_error::what() const throw() // see http://www.boost.org/more/error_handling.html for lazy build rationale { if ( m_what.empty() ) { try { m_what = this-&gt;std::runtime_error::what(); if ( !m_what.empty() ) m_what += ": "; m_what += m_error_code.message(); } catch (...) { return std::runtime_error::what(); } } return m_what.c_str(); } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7500 Trac 1.4.3 viboes Mon, 29 Oct 2012 02:13:47 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/7500#comment:1 https://svn.boost.org/trac10/ticket/7500#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">duplicate</span> </li> </ul> <p> <a class="reopened ticket" href="https://svn.boost.org/trac10/ticket/7149" title="#7149: Bugs: system failed to compile with BOOST_NO_EXCEPTIONS defined when ... (reopened)">#7149</a> system failed to compile with BOOST_NO_EXCEPTIONS defined when -fno-exceptions is NOT used </p> Ticket