Boost logo

Boost :

From: Michel André (michel.andre_at_[hidden])
Date: 2003-03-11 18:05:59


Hello!

When compiling the following program on gcc 3.2 on a Linux box aginst the
boost in the CVS repository it fails

#include <boost/date_time/posix_time/posix_time_types.hpp>
int main(int argc, char** argv) {}

with

[michel_at_merry michel]$ g++ i.c -I"/home/michel/boost/work"
In file included from
/home/michel/boost/work/boost/date_time/posix_time/posix_time_types.hpp:9,
                 from i.c:2:
/home/michel/boost/work/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/michel/boost/work/boost/date_time/microsec_time_clock.hpp:44: parse
error
   before `;' token

adding

#include <boost/date_time/posix_time/posix_time_config.hpp>
#include <boost/date_time/posix_time/posix_time_types.hpp>
int main(int argc, char** argv) {}

or including
#include <boost/date_time/posix_time/posix_time.hpp>

works.

So I guess the config isn't included in all files? According to the docs
#include <boost/date_time/posix_time/posix_time_types.hpp> is an available
header file with definitions without io.

Regards
/Michel


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