Boost logo

Boost Users :

From: sebmarc_at_[hidden]
Date: 2001-10-08 10:22:01


In file included from libs/thread/build/../src/thread.cpp:23:
libs/thread/build/../src/timeconv.inl: In function `void
{anonymous}::to_time(unsigned int, boost::xtime &)':
libs/thread/build/../src/timeconv.inl:26: warning: comparison between
signed and unsigned
gcc-C++-action
libs/thread/build/bin/libboost_thread/gcc/debug/runtime-link-
dynamic/tss.o
gcc-C++-action
libs/thread/build/bin/libboost_thread/gcc/debug/runtime-link-
dynamic/xtime.o
libs/thread/build/../src/xtime.cpp:47: #error "xtime_get
implementation undefined"

    g++ -c -Wall -ftemplate-depth-100 -g -O0 -fno-inline -
I"libs/thread/build" -I"/home/smarc/boost_1_25_0" -
o "libs/thread/build/bin/libboost_thread/gcc/debug/runtime-link-
dynamic/xtime.o" "libs/thread/build/../src/xtime.cpp"

...failed gcc-C++-action
libs/thread/build/bin/libboost_thread/gcc/debug/runtime-link-
dynamic/xtime.o ...
gcc-C++-action
libs/thread/build/bin/libboost_thread/gcc/debug/runtime-link-
dynamic/once.o
libs/thread/build/../src/once.cpp: In function `void do_once(...)':
libs/thread/build/../src/once.cpp:41: ANSI C++ forbids casting
between pointers to functions and objects

I fixed the xtime_get error by defining BOOST_HAS_GETTIMEOFDAY. It
would be nice if it could get enabled by default though.

For the second one, i replaced the reinterpret_cast with a C-style
cast. I'm not sure that's the best way to fix it though.

Seb.

--- In Boost-Users_at_y..., williamkempf_at_h... wrote:
> --- In Boost-Users_at_y..., sebmarc_at_y... wrote:
> > Has anyone successfully built boost/thread on Linux using g++ ?.
> >
> > I am getting two compilation errors.
> >
> > Seb.
>
> Please post the errors you're getting.
>
> Bill Kempf


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net