'Error' message: '‘reverse_lock’ is not a member of ‘boost’'
file: file:///opt/ros/kinetic/include/actionlib/server/action_server_base.h
severity: 'Error'
message: '‘reverse_lock’ is not a member of ‘boost’'
at: '256,5'
source: ''
file: 'file:///opt/ros/kinetic/include/actionlib/server/action_server_base.h'
severity: 'Error'
message: 'expected primary-expression before ‘>’ token'
at: '256,60'
source: ''
file: 'file:///opt/ros/kinetic/include/actionlib/server/action_server_base.h'
severity: 'Error'
message: '‘unlocker’ was not declared in this scope'
at: '256,70'
source: ''
above is the error when i try to build a package. This is the line where error is occuring:
boost::reverse_lock<boost::recursive_mutex::scoped_lock> unlocker(lock);
as i checked my boost version, i've installed boost 1.58.0. Is this ok if i edit the action_server_bash.h
file? will not it affect latter since this hearder file is default file of actionlib package for ros kinetic?
Editing that file is not correct; that lock is probably there for a reason, and removing it is likely to cause bugs.
Your error messages look unusual. Which operating system and compiler are you using?
It would also be useful to see the code or a small sample program that demonstrates this error.
i am using ubuntu 16.06, kernel version 4.13.0-37 generic, ros kinetic. well i was trying to use rtt_actionlib_example . But it seems like this package has not been maintained for over3 years.