[Boost.Log] How to link with on MSVC 2008?

Hello, i have found the following instructions to build Boost.Log:
I did the above starting from a 1.44 source release. This worked out well. But when trying to use the library I get a lot of linker errors in my project: 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. Anyone managed to compile and use Boost.Log on MSVC 2008 and can help? Thank you, Lars Ruoff

No, Because I just made a test: When I use stuff from Boost.Filesystem Like boost::filesystem::remove_all( "foobar" ); boost::filesystem::create_directory( "foobar" ); it links well. Lars -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Igor R Sent: mardi 5 octobre 2010 17:54 To: boost-users@lists.boost.org Subject: Re: [Boost-users] [Boost.Log] How to link with on MSVC 2008?
Just a guess: Log depends on Boost.Filesystem library, and you haven't compiled it. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

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@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Igor R Sent: mardi 5 octobre 2010 17:54 To: boost-users@lists.boost.org Subject: Re: [Boost-users] [Boost.Log] How to link with on MSVC 2008?
Just a guess: Log depends on Boost.Filesystem library, and you haven't compiled it. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

Ok, well, i got this working now.
Thanks for your input Roger - it put me back on track!
The things is:
#include
Can you compile/link the Boost.Log trivial example? Roger S. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

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

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@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Torri, Stephen CIV NSWCDD, W15 Sent: vendredi 8 octobre 2010 15:37 To: boost-users@lists.boost.org Subject: Re: [Boost-users] [Boost.Log] How to link with on MSVC 2008?
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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (4)
-
Igor R
-
Roger Stewart
-
RUOFF, LARS (LARS)** CTR **
-
Torri, Stephen CIV NSWCDD, W15