Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost] [log] Link error with trivial logging
From: Roger Stewart (rstewart_at_[hidden])
Date: 2010-06-16 10:00:20



> -----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.
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


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 <boost/log/sinks/text_file_backend.hpp>

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.


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