Hi, I am trying to use Boost.Date_Time (and Boost) for the first time,
and I failed to compile the following :
------------------------------------
#include <iostream>
#include <iomanip>
#include
#include
int main(int, char **) {
using namespace std;
using namespace boost::posix_time;
using namespace boost::gregorian;
std::cout << to_simple_string(second_clock::universal_time());
return 0;
}
-----------------------------------------
I get these comments :
g++ -c -pipe -Wall -W -O2 -g -pipe -m32 -march=i386 -mtune=pentium4
-DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT
-I/usr/lib/qt-3.3/mkspecs/default -I. -I/usr/lib/qt-3.3/include -o
receiver.o receiver.cpp
g++ -o receiver.exe receiver.o -L/usr/lib/qt-3.3/lib
-L/usr/X11R6/lib -lchoo -lqt-mt -lXext -lX11 -lm
receiver.o(.text+0xb96): In function `main':
/usr/include/boost/date_time/date_formatting.hpp:43: undefined reference
to `boost::gregorian::greg_month::as_short_string() const'
I found some threads about this error but no solution. Can any one help?
I am using Boost 1.32.0.
Cheers,
Patrick