Thank you. It works now. My problem was compiler picked up old version of boost :(> You mean there is not a sleep function anywhere in boost but inside boost::thread? Wow...that's incredible disappointment.
sleep() resides in this_thread namespace
just include the appropriate header file