
From: boost-users-bounces@lists.boost.org on behalf of RUOFF, LARS (LARS)** CTR ** Sent: Fri 10/8/2010 9:23 AM To: boost-users@lists.boost.org Subject: Re: [Boost-users] [Boost.Log] How to link with on MSVC 2008?
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?
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