Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost] [log] Link error with trivial
From: Joey Mink (joeymink_at_[hidden])
Date: 2010-06-16 12:52:13


> -----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_at_boost@@YAABVerror_category_at_12_at_XZ)
> > referenced in function "void __cdecl boost::system::`dynamic
> > initializer for 'system_category''(void)"
> > (??__Esystem_category_at_system_at_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 <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.

Roger - thanks for the reply and suggestion. I included a backend sink as
you mentioned and my linking issue was no more!

Joey



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