Boost logo

Boost Users :

From: David Clark (yg-boost-users_at_[hidden])
Date: 2002-10-15 12:28:56


Hi,

I am having a problem compiling the following example

#include "boost/date_time/gregorian/gregorian.hpp"
#include "boost/date_time/date_parsing.hpp"
#include <iostream>
#include <string>

int main()
{
        using namespace boost::gregorian;
        std::string s("2002-10-15");
        date d(from_string(s));
        std::cout << to_simple_string(d) << std::endl;
        return 0;
};

The linker is complaining about an undefined reference to
boost::gregorian::greg_month::as_short_string() const and
boost::gregorian::greg_month::as_long_string() const

using g++ 3.0.4
g++ test.cpp -o test -DDATE_TIME_INLINE

Seems the problem is in the call to to_simple_string(d)

Is there something obvious I'm missing here.

Thanks
David.


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