Boost logo

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 11:18:33


Hi,
I posted part of it in my first message.
Here's the complete messages (some are really long) attached as a txt file.

Lars

-----Original Message-----
From: boost-users-bounces_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Torri, Stephen CIV NSWCDD, W15
Sent: vendredi 8 octobre 2010 15:37
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] [Boost.Log] How to link with on MSVC 2008?

 
>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 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