Boost logo

Boost :

From: Gander (agander_at_[hidden])
Date: 2005-04-16 04:11:58


I get an error linking the example program days_alive to the shared library

g++ -L/usr/lib -lboost_date_time -odays_alive days_alive.o
In function `unsigned short
std::char_traits<char>, std::allocator<char> >)':
/usr/include/boost/token_functions.hpp:587: undefined reference to
collect2: ld returned 1 exit status

Platform is FC2
gcc version 3.3.3 20040412 (Red Hat Linux 3.3.3-7)

I built Boost from the SRC RPM boost-1.32.0-3.src.rpm with no special

I found a comment in the boost mailings advising linking to static library.
This was successful.

Is the general advice to only use the static libraries?

Giles Anderson

Boost list run by bdawes at, gregod at, cpdaniel at, john at