15 Oct
2002
15 Oct
'02
5:28 p.m.
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.