Hi Konstantin, When I was getting started I had some similar trouble so I posted all the tutorial code here: http://sourceforge.net/projects/boost-log/forums/forum/710021/topic/4804917 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. mailto:david@artsman.com 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
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
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users