Boost logo

Boost Users :

Subject: Re: [Boost-users] Undefined Reference to 'boost::system::generic_category()'
From: Maarten de Vries (maarten_at_[hidden])
Date: 2016-06-15 16:29:16

On 15 June 2016 at 21:24, Blair Climenhaga <blairclimenhaga_at_[hidden]>

> Hello everyone,
> I have been attempting to install OpenFOAM however the boost library has
> been giving me trouble, most recently reading out these error during
> OpenFOAM installation.
> undefined reference to `boost::system::generic_category()'
> undefined reference to `boost::system::system_category()'

You need to link with -lboost_system (or equivalent for whatever name your
platform uses)​. Most libraries in boost are header only, but that is not
true for everything. Boost system is one of the libraries that needs a
compiled library.

> undefined reference to `boost::detail::set_tss_data(void const*,
> boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)'
> undefined reference to `boost::detail::get_tss_data(void const*)'
Similar problem, link with -lboost_thread​


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at