Boost C++ Libraries: Ticket #7689: Error when using boost/thread.hpp with gcc 4.7.2 on x86_64 (boost 1.52) https://svn.boost.org/trac10/ticket/7689 <p> g++ -Wall -fPIC -O2 -pipe -fomit-frame-pointer -march=k8 -std=c++0x -I. -I/pro/src -I/usr/include -c test.cpp In file included from /usr/include/boost/thread.hpp:24:0, </p> <blockquote> <p> from test.cpp:8: </p> </blockquote> <p> /usr/include/boost/thread/future.hpp:139:26: error: expected ‘;’ at end of member declaration </p> <p> /usr/include/boost/thread/future.hpp:139:32: error: ‘BOOST_THREAD_NOEXCEPT_OR_THROW’ does not name a type </p> <p> /usr/include/boost/thread/future.hpp:139:19: error: looser throw specifier for ‘virtual const char* boost::future_error::what() const’ </p> <p> /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/stdexcept:70:5: error: overriding ‘virtual const char* std::logic_error::what() const noexcept (true)’ </p> <p> make: <strong>* [test.o] Error 1 </strong></p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7689 Trac 1.4.3 viboes Sat, 01 Dec 2012 22:28:24 GMT status, component changed; resolution set https://svn.boost.org/trac10/ticket/7689#comment:1 https://svn.boost.org/trac10/ticket/7689#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">invalid</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">thread</span> </li> </ul> <p> As I told already to you privately and on the ML, you are mixing two Boost versions. </p> Ticket