Subject: Re: [boost] BOOST_ASIO_SEPARATE_COMPILATION linker error
From: Ben Pope (benpope81_at_[hidden])
Date: 2015-01-13 21:23:57
On Wednesday, January 14, 2015 08:22 AM, Arun.Ramasamy_at_[hidden] wrote:
> I'm trying to build boost 1.47's asio library with the BOOST_ASIO_SEPARATE_COMPILATION macro in windows 7, 32-bit, VS 2010. With this macro, the asio library can be included and built easily without building all of boost or using bjam. However, I get the following linker error:
> unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category_at_system@boost@@YAABVerror_category_at_12@XZ) referenced in function "public: __thiscall boost::system::error_code::error_code(void)" (??0error_code_at_system@boost@@QAE_at_XZ)
> unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category_at_system@boost@@YAABVerror_category_at_12@XZ) referenced in function "void __cdecl boost::system::`dynamic initializer for 'posix_category''(void)" (??__Eposix_category_at_system@boost@@YAXXZ)
> Basically the functions boost::system::system_category and boost::system::generic_category aren't defined anywhere. I can't find the implementation of these functions in boost source when I tried grepping it.
> Should I just use bjam to build the asio library.
I don't know about Boost 1.47, but it's currently in
You probably need to build and link with boost::system.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk