|
Boost Users : |
Subject: Re: [Boost-users] [Boost.Log] How to link with on MSVC 2008?
From: RUOFF, LARS (LARS)** CTR ** (lars.ruoff_at_[hidden])
Date: 2010-10-08 09:23:20
Ok, well, i got this working now.
Thanks for your input Roger - it put me back on track!
The things is:
#include <boost/log/trivial.hpp>
BOOST_LOG_TRIVIAL(trace) << "A trace severity message";
(like in the trivial tutorial)
gives me the linker errors (but compiles ok).
But with additionally including
#include <boost/filesystem.hpp>
it will link ok.
Anyone know why?
regards,
Lars
-----Original Message-----
From: boost-users-bounces_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Roger Stewart
Sent: vendredi 8 octobre 2010 14:54
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] [Boost.Log] How to link with on MSVC 2008?
> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-
> bounces_at_[hidden]] On Behalf Of RUOFF, LARS (LARS)** CTR **
> Sent: Friday, October 08, 2010 8:05 AM
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] [Boost.Log] How to link with on MSVC 2008?
>
> Any other ideas?
> Did anyone manage to link with Boost.Log on a MSCV 2008 project?
> How did you compile the library?
>
> Regards,
> Lars
>
>
> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-
> bounces_at_[hidden]] On Behalf Of Igor R
> Sent: mardi 5 octobre 2010 17:54
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] [Boost.Log] How to link with on MSVC 2008?
>
> > 1>Linking...
> > 1>libboost_log-vc90-mt-gd-1_44.lib(text_file_backend.obj) : error
> LNK2019:
> > unresolved external symbol "class boost::filesystem2::file_status
> [...]
> > (Very long error messages containing decorated names. The above is
> just the
> > start)
> >
> > Linker path settings should be correct, since the linker correctly
> finds
> > libboost_log-vc90-mt-gd-1_44.lib.
> > Also the project is using other Boost libraries (Asio, shared-ptr,
> bind,
> > posix-time, etc) without problems.
>
> Just a guess: Log depends on Boost.Filesystem library, and you haven't
> compiled it.
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
Can you compile/link the Boost.Log trivial example?
Roger S.
_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users
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