Boost logo

Boost :

From: Tony Cheung (tony.cheung_at_[hidden])
Date: 2003-03-21 02:58:34


Hi,

I am trying to use the date-time library of boost. However, I come into
a lot of linking problems.

In boost_1_29_0/libs/date_time/test,

gcc testgregorian_calendar.cpp -I/home/tony/work/boost_1_29_0/ -lstdc++

It gives many linking problems, such as,

/tmp/ccMBFqqI.o: In function `main':
/tmp/ccMBFqqI.o(.text+0x154): undefined reference to
`boost::date_time::gregorian_calendar_base<boost::date_time::year_month_day_base<unsigned
long, unsigned short, unsigned short>, unsigned
long>::day_of_week(boost::date_time::year_month_day_base<unsigned long,
unsigned short, unsigned short> const&)'
/tmp/ccMBFqqI.o(.text+0x23a): undefined reference to
`boost::date_time::gregorian_calendar_base<boost::date_time::year_month_day_base<unsigned
long, unsigned short, unsigned short>, unsigned
long>::day_of_week(boost::date_time::year_month_day_base<unsigned long,
unsigned short, unsigned short> const&)'

I have tested with both gcc3.02 and gcc2.96 under Red Hat 7.2

Did I do anything wrong? Thank you.

Tony


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk