Boost logo

Boost Users :

From: williamkempf_at_[hidden]
Date: 2001-10-08 12:22:14


--- In Boost-Users_at_y..., sebmarc_at_y... wrote:
> 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.

This is a problem with the new config system that will be worked out
before the next release.

> 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.

I may have introduced a bug here. I'll look into in more detail when
I get a chance and it will be fixed before the next release. Thanks
for the report.

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