You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to build the library but I get the following compilation errors:
/home/.../shared_memory/src/locked_condition_variable.cpp: In member function 'bool shared_memory::LockedConditionVariable::timed_wait(long int)':
/home/.../shared_memory/src/locked_condition_variable.cpp:64:16: error: 'boost::posix_time' has not been declared
64 | boost::posix_time::ptime current_time =
| ^~~~~~~~~~
/home/.../shared_memory/src/locked_condition_variable.cpp:66:16: error: 'boost::posix_time' has not been declared
66 | boost::posix_time::time_duration waiting_time =
| ^~~~~~~~~~
/home/.../shared_memory/src/locked_condition_variable.cpp:70:48: error: 'current_time' was not declared in this scope
70 | current_time + waiting_time);
| ^~~~~~~~~~~~
/home/.../shared_memory/src/locked_condition_variable.cpp:70:63: error: 'waiting_time' was not declared in this scope
70 | current_time + waiting_time);
| ^~~~~~~~~~~~
/home/.../shared_memory/src/locked_condition_variable.cpp:60:47: warning: unused parameter 'wait_nano_seconds' [-Wunused-parameter]
60 | bool LockedConditionVariable::timed_wait(long wait_nano_seconds)
| ~~~~~^~~~~~~~~~~~~~~~~
These issues were resolved when I added the #include <boost/date_time/posix_time/posix_time.hpp> header to shared_memory.hpp. There are other compilation issues that are also resolved by adding the appropriate headers.
The text was updated successfully, but these errors were encountered:
It has been a while and there is no reply. I tried doing a pull request but I got an unauthorized error. Since there is no support, I will post a diff of my changes in case anyone faces the same issue I did.
I am trying to build the library but I get the following compilation errors:
These issues were resolved when I added the
#include <boost/date_time/posix_time/posix_time.hpp>
header toshared_memory.hpp
. There are other compilation issues that are also resolved by adding the appropriate headers.The text was updated successfully, but these errors were encountered: