
-----Original Message----- From: boost-users-bounces_at_[hidden] [mailto:boost-users- bounces_at_[hidden]] On Behalf Of Igor R Sent: Wednesday, June 16, 2010 3:56 AM To: boost-users_at_[hidden] Subject: Re: [Boost-users] [boost] [log] Link error with trivial logging
libboost_log-vc80-mt-sgd-1_43.lib(trivial.obj) : error LNK2019: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::get_system_category(void)" (?get_system_category_at_system@boost@@YAABVerror_category_at_12@XZ) referenced in function "void __cdecl boost::system::`dynamic initializer for 'system_category''(void)" (??__Esystem_category_at_system@boost@@YAXXZ)
Any thoughts on what might be causing this? Â Below is my main(). Â Thanks!
Do you have libboost_system-vc80-mt-sgd-1_43.lib ? This lib should be linked as well.
Igor - thanks for the reply - yes, I did have that library available. I am using msvc90 with boost 1.43 and receive the same linking errors when
compiling a simple trivial console project.
I can get the project to link successfully if I include a backend sink,
i.e.:
#include
This bug can be verified by declaring #define BOOST_LIB_DIAGNOSTIC and watching which libs get pulled in for linking when including or commenting out text_file_backend.hpp.
Roger S.
Roger - thanks for the reply and suggestion. I included a backend sink as you mentioned and my linking issue was no more! Joey