|
Boost Users : |
From: Jeff Garland (jeff_at_[hidden])
Date: 2003-02-25 09:50:25
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
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