Just a guess: Log depends on Boost.Filesystem library, and you haven't
compiled it.
_______________________________________________
Boost-users mailing list
Boost...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
Lars
Regards,
Lars
-----Original Message-----
From: boost-use...@lists.boost.org [mailto:boost-use...@lists.boost.org] On Behalf Of Igor R
Sent: mardi 5 octobre 2010 17:54
To: boost...@lists.boost.org
Subject: Re: [Boost-users] [Boost.Log] How to link with on MSVC 2008?
Can you compile/link the Boost.Log trivial example?
Roger S.
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,
All I can guess, without seeing the errors, is that the Log library will create a file with the name of the process for storing the information. So I can see why it would need the boost filesystem but not sure why linking errors are resolved by including the header. Can you post the linker error?
Stephen
Lars