IceUtil Monitor problem

in Help Center
Hi there,
I'm new to the ice library and i'm trying to use a monitor object for wait-notify and locking.
When I put the line
IceUtil::Monitor<IceUtil::Mutex > monitor_;
as a private class variable, I get the following from the compiler
In instantiation of 'IceUtil::Monitor<IceUtil::Mutex>':
...fakemonitor.h:19: instantiated from here
/opt/Ice-3.0.1/include/IceUtil/Monitor.h:58: error: 'IceUtil::Monitor<T>::_mutex' has incomplete type
/opt/Ice-3.0.1/include/IceUtil/Cond.h:29: error: forward declaration of 'struct IceUtil::Mutex'
I have included the header file IceUtil/Monitor.h
Ideas welcome
thanks.
Orca robotics project
http://orca-robotics.sourceforge.net/
Bailey Wu
Australian Centre for Field Robotics
http://www.cas.edu.au/content.php/266.html
University of Sydney
www.usyd.edu.au
I'm new to the ice library and i'm trying to use a monitor object for wait-notify and locking.
When I put the line
IceUtil::Monitor<IceUtil::Mutex > monitor_;
as a private class variable, I get the following from the compiler
In instantiation of 'IceUtil::Monitor<IceUtil::Mutex>':
...fakemonitor.h:19: instantiated from here
/opt/Ice-3.0.1/include/IceUtil/Monitor.h:58: error: 'IceUtil::Monitor<T>::_mutex' has incomplete type
/opt/Ice-3.0.1/include/IceUtil/Cond.h:29: error: forward declaration of 'struct IceUtil::Mutex'
I have included the header file IceUtil/Monitor.h
Ideas welcome
thanks.
Orca robotics project
http://orca-robotics.sourceforge.net/
Bailey Wu
Australian Centre for Field Robotics
http://www.cas.edu.au/content.php/266.html
University of Sydney
www.usyd.edu.au
0
Comments
ok problem fixed! Thanks