Boost logo

Boost :

From: Christopher Currie (christopher_at_[hidden])
Date: 2003-04-20 21:24:52


Hello,

 

Attached is a quick patch to microsec_time_clock.hpp, which in CVS fails
to compile under cygwin due to a missing header file. Please let me know
if there's something that I'm doing wrong here. I found the bug trying
to build the socket library in boost-sandbox.

 

My test case is below, followed by the patch.

 

Christopher

 

 

Christopher_at_picasso ~/src/test

$ cat datetime.cc

#include <boost/date_time/posix_time/posix_time_types.hpp>

 

int main () { return 0; }

 

 

Christopher_at_picasso ~/src/test

$ make datetime

g++ -I/home/currie/src/cvs/boost datetime.cc -o datetime

In file included from
/home/currie/src/cvs/boost/boost/date_time/posix_time/posix_time_types.h
pp:9,

                 from datetime.cc:1:

/home/currie/src/cvs/boost/boost/date_time/microsec_time_clock.hpp: In
static

   member function `static time_type

   boost::date_time::microsec_clock<time_type>::create_time(timeval*)':

/home/currie/src/cvs/boost/boost/date_time/microsec_time_clock.hpp:44:
parse

   error before `;' token

make: *** [datetime] Error 1

 

 

 

 

 

 

Christopher_at_picasso ~/src/cvs/boost/boost/date_time

$ cvs diff -c microsec_time_clock.hpp

Index: microsec_time_clock.hpp

===================================================================

RCS file: /cvsroot/boost/boost/boost/date_time/microsec_time_clock.hpp,v

retrieving revision 1.1

diff -c -r1.1 microsec_time_clock.hpp

*** microsec_time_clock.hpp 13 Feb 2003 18:38:35 -0000 1.1

--- microsec_time_clock.hpp 21 Apr 2003 02:11:48 -0000

***************

*** 5,10 ****

--- 5,11 ----

    This file contains the interface for clock devices

  */

  

+ #include "boost/cstdint.hpp"

  #include "boost/date_time/c_time.hpp"

  #ifdef BOOST_DATE_TIME_HAS_GETTIMEOFDAY_HIGH_PRECISION_CLOCK

 

 



Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk