Boost logo

Boost Users :

Subject: Re: [Boost-users] [Boost.Log] How to link with on MSVC 2008?
From: Torri, Stephen CIV NSWCDD, W15 (stephen.torri_at_[hidden])
Date: 2010-10-08 09:37:02


 
>From: boost-users-bounces_at_[hidden] on behalf of RUOFF, LARS (LARS)** CTR **
>Sent: Fri 10/8/2010 9:23 AM
>To: boost-users_at_[hidden]
>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


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