
Hi:
I am trying to use boost threads with condition variables on hpux with aCC compiler.
The compiler has incomplete support of C++11 standard.
It does not have <chrono> or <thread> headers.
I get the following error message when compiling a program which is using condition variables:
"/usr/local/include/boost/thread/pthread/thread_data.hpp", line 344: error #2135:
namespace "boost::chrono" has no member "steady_clock"
void sleep_until(const chrono::time_point

Gavin:
Thanks. That worked.
I had tried before, but didn't have the define high enough in the code.
It appears that adding #define BOOST_THREAD_DONT_USE_CHRONO eliminates wait_for method of condition variable, if I am interpreting the condition_variable_fwd.hpp header correctly.
But time_wait is available, which I should be able to use.
Thanks again for helping you saved me a lot of headaches.
John
John Parke
Alebra Technologies Inc.
PO Box 120390
New Brighton, MN 55112
-----Original Message-----
From: Boost-users
You need to define this when you are building your app/lib (before including any Boost header files). Usually defining these at Boost build time is not necessary, but probably doesn't hurt. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org https://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Gavin Lambert
-
John Parke