Boost logo

Boost :

From: Jeff Garland (jeff_at_[hidden])
Date: 2005-04-16 09:58:47

On Sat, 16 Apr 2005 10:11:58 +0100, Gander wrote
> Hi,
> I get an error linking the example program days_alive to the shared
> library libboost_date_time.
> 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
`boost::gregorian::greg_month::get_month_map_ptr()' 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 switches.
> 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?

The shared library works fine for me on Mandrake -- but I built it and
installed it myself. Are you 100% sure the library path and name are correct?
   If you build boost directly the library names are different: for example...


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