I am working on a C ++ project using Boost, and between compilers, I must have updated something in boost without meaning or something like that, because now Boost dependencies will not compile:
In file included from /usr/include/boost/thread/pthread/mutex.hpp:14:0, from /usr/include/boost/thread/mutex.hpp:16, from /usr/include/boost/thread/pthread/thread_data.hpp:12, from /usr/include/boost/thread/thread.hpp:17, from /usr/include/boost/thread.hpp:13, from /blah.h:4, from bluh.h:3, from bleh/main.cpp:4: /usr/include/boost/thread/xtime.hpp:23:5: error: expected identifier before numeric constant /usr/include/boost/thread/xtime.hpp:23:5: error: expected '}' before numeric constant /usr/include/boost/thread/xtime.hpp:23:5: error: expected unqualified-id before numeric constant /usr/include/boost/thread/xtime.hpp:46:14: error: expected type-specifier before 'system_time' In file included from /usr/include/boost/thread/pthread/mutex.hpp:14:0, from /usr/include/boost/thread/mutex.hpp:16, from /usr/include/boost/thread/pthread/thread_data.hpp:12, from /usr/include/boost/thread/thread.hpp:17, from /usr/include/boost/thread.hpp:13, from /blah, from /bleh,(changed these names, obviously) from /bluh /main.cpp:4: /usr/include/boost/thread/xtime.hpp: In function 'int xtime_get(xtime*, int)': /usr/include/boost/thread/xtime.hpp:73:40: error: 'get_system_time' was not declared in this scope /usr/include/boost/thread/xtime.hpp:73:40: note: suggested alternative: /usr/include/boost/thread/thread_time.hpp:19:24: note: 'boost::get_system_time' /usr/include/boost/thread/xtime.hpp: At global scope: /usr/include/boost/thread/xtime.hpp:88:1: error: expected declaration before '}' token make[2]: *** [CMakeFiles/edge_based_tracker.dir/main.o] Error 1 make[1]: *** [CMakeFiles/edge_based_tracker.dir/all] Error 2 make: *** [all] Error 2
Any ideas? I tried changing TIME_UTC to TIME_UTC_, as it was recommended to me on another site, but that did not seem to help.
EDIT: Boost Version - Version: 1.48.0.2. I added xtime below:
// Copyright (C) 2001-2003 // William E. Kempf // Copyright (C) 2007-8 Anthony Williams // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
EDIT. To make this clear, the code does not work when importing boost / thread.hpp
source share