Boost logo

Boost :

Subject: [boost] BOOST_ASIO_SEPARATE_COMPILATION linker error
From: Arun.Ramasamy_at_[hidden]
Date: 2015-01-13 19:22:15


HI,

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)
1>

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.

Thanks

arun


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk