Package: libboost-thread-dev
Version: 1.49.0.1
Severity: normal

Hi,

I must be missing something obvious, I can't be the first to try to use 
boost/thread, can I?

See also https://bbs.archlinux.org/viewtopic.php?pid=1126374

$ cat t.cpp 
#include <boost/thread.hpp>

$ g++ t.cpp
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 t.cpp:1:
/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 t.cpp:1:
/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:
In file included from /usr/include/boost/thread/locks.hpp:12:0,
                 from /usr/include/boost/thread/pthread/mutex.hpp:12,
                 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 t.cpp:1:
/usr/include/boost/thread/thread_time.hpp:19:24: note:   
‘boost::get_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 t.cpp:1:
/usr/include/boost/thread/xtime.hpp: At global scope:
/usr/include/boost/thread/xtime.hpp:88:1: error: expected declaration before 
‘}’ token
 


-- System Information:
Debian Release: 7.2
  APT prefers stable
  APT policy: (500, 'stable'), (1, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libboost-thread-dev depends on:
ii  libboost-thread1.49-dev  1.49.0-3.2

libboost-thread-dev recommends no packages.

libboost-thread-dev suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to