
Eric C wrote:
test.cpp:7: undefined reference to `boost::date_time::gregorian_calendar_base<boost::date_time::year_month_day_base<boost::gregorian::greg_year, boost::gregorian::greg_month, boost::gregorian::greg_day>, unsigned long>::day_number(boost::date_time::year_month_day_base<boost::gregorian::greg_year, boost::gregorian::greg_month, boost::gregorian::greg_day> const&)'
test.cpp:6: undefined reference to `boost::date_time::gregorian_calendar_base<boost::date_time::year_month_day_base<boost::gregorian::greg_year, boost::gregorian::greg_month, boost::gregorian::greg_day>, unsigned long>::from_day_number(unsigned long)'
(snipped...)
Best as I can tell (cd $BOOST_ROOT/boost/date_time && find . -name '*.cpp' -print), there are no .cpp files to be compiled...
The .cpp files are under libs/date_time/src.
Anyone know what's up?
With 1.29 you have to build and link the library. And don't forget to define DATE_TIME_INLINE. This has been cleaned up in 1.30. See http://www.boost.org/libs/date_time/doc/BuildInfo.html for more. Jeff