I have boost 1.29 and gcc 3.2.2 on Linux. Here is the simple
code I am trying to compile:
#include <string>
#include "boost/date_time/gregorian/gregorian.hpp"
int main()
{
using namespace std;
using namespace boost::gregorian;
string ds("2002/1/25");
date d1(from_string(ds));
return 0;
}
I get the following link error:
make
g++ main.cc -lstdc++ -o test
/tmp/ccph1inq.o(.gnu.linkonce.t._ZN5boost9date_time4dateINS_9gregorian4dateENS2_18gregorian_calendarENS0_13date_durationIlEEEC2ERKNS0_19year_month_day_baseINS2_9greg_yearENS2_10greg_monthENS2_8greg_dayEEE+0x11): In function `boost::date_time::date