Hi Konstantin,
That was with version 1 though, so some of the code has changed a little. With version 2 you'll probably want to take a look at $BOOST_ROOT/libs/log/example.
If your problem is actually a linking problem then you may need to ask Andrey (the developer), at the link above, on the Boost.Log forum, since I don' t have any experience with using it from Eclipse.
__________________________________
David McKeone
Arts Management Systems Ltd.
On 2011-11-18, at 11:57 AM, Konstantin Ribel wrote:
Hello All,
I finally managed to build the boost lib including boost.log. Now
I am trying to get trivial logging to work, but I am experiencing
some issues with it. Here is what I have done so far:
- Created a simple C++ project called CppTests in Eclipse
- Added the following code
#include <boost/log/trivial.hpp>
int main(int, char*[])
{
BOOST_LOG_TRIVIAL(trace) << "A trace severity
message";
BOOST_LOG_TRIVIAL(debug) << "A debug severity
message";
BOOST_LOG_TRIVIAL(info) << "An informational severity
message";
BOOST_LOG_TRIVIAL(warning) << "A warning severity
message";
BOOST_LOG_TRIVIAL(error) << "An error severity
message";
BOOST_LOG_TRIVIAL(fatal) << "A fatal severity
message";
return 0;
}
- Added the include and lib path to the project
When I hit the build button I get 10 errors. The build log is
attached to this email.
Does anybody know what to do in this situation? Do I have to define
some symbols?
Many thanks,
Konstantin
<build.log>_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users