Boost logo

Boost Users :

From: Jeff Garland (jeff_at_[hidden])
Date: 2003-05-27 09:28:56


> The first problem I ran into was that I got a linker error because the class
> greg_month (in greg_month.hpp) did not provide definitions for the following
> member functions:
>
> const char* as_short_string() const;
> const char* as_long_string() const;
>
> I quicky wrote some inline switch statements to get past that hurdle, but

This isn't the way to handle this. You will need to build and link the
library (libboost_date_time). If you cd to libs/date_time/build and
run bjam that will take care of it.

> then the compiler started complaining when I tried to use std::advance. It
> is unfortunate that I do not have the exact error in front of me right now,
> but I did trace the problem to the definition of month_iterator. I found
> that if I derived its base implementation class from the class template
> iterator that it would compile without problems. Is this a problem with the
> STL that ships with MSVC6?

Unclear without the detail. The regression tests for MSVC6 do pass, so there
is hope.
 

Jeff


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