Opened 10 years ago
Closed 10 years ago
#7689 closed Bugs (invalid)
Error when using boost/thread.hpp with gcc 4.7.2 on x86_64 (boost 1.52)
Reported by: | Owned by: | ||
---|---|---|---|
Milestone: | To Be Determined | Component: | thread |
Version: | Boost 1.52.0 | Severity: | Problem |
Keywords: | Cc: |
Description
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,
from test.cpp:8:
/usr/include/boost/thread/future.hpp:139:26: error: expected ‘;’ at end of member declaration
/usr/include/boost/thread/future.hpp:139:32: error: ‘BOOST_THREAD_NOEXCEPT_OR_THROW’ does not name a type
/usr/include/boost/thread/future.hpp:139:19: error: looser throw specifier for ‘virtual const char* boost::future_error::what() const’
/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)’
make: * [test.o] Error 1
Change History (1)
comment:1 by , 10 years ago
Component: | None → thread |
---|---|
Resolution: | → invalid |
Status: | new → closed |
As I told already to you privately and on the ML, you are mixing two Boost versions.