|
Boost Users : |
Subject: Re: [Boost-users] Undefined Reference to 'boost::system::generic_category()'
From: Leon Mlakar (leon_at_[hidden])
Date: 2016-06-16 10:07:32
On 16.06.2016 16:00, Blair Climenhaga wrote:
> Thanks Maarten,
>
> How would I go about linking -lboost_system and -lboost_thread? I'm
> sorry, I am just starting out with Linux. I should say that I am using
> Ubuntu 14.04. Thanks in advance for any and all help you can provide.
Exactly the way you've written: add "-lboost_system -lboost_thread" to
the command line. If you installed Ubuntu's boost-all-dev package the
libraries should already be under /usr/li where linker will find t hem;;
if not add -L<path-to-directory-containing-libraries> to tell the linker
where the libraries are.
Cheers,
Leon
>
> All the best,
> Blair Climenhaga
>
>
> ------------------------------------------------------------------------
> From: maarten_at_[hidden]
> Date: Wed, 15 Jun 2016 22:29:16 +0200
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] Undefined Reference to
> 'boost::system::generic_category()'
>
>
>
> On 15 June 2016 at 21:24, Blair Climenhaga <blairclimenhaga_at_[hidden]
> <mailto:blairclimenhaga_at_[hidden]>> wrote:
>
> 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â
>
> Regards,
> âMaarten
>
>
> _______________________________________________ Boost-users mailing
> list Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net