Boost logo

Boost Users :

Subject: [Boost-users] [boost] [log] Link error with trivial logging
From: Joey Mink (joeymink_at_[hidden])
Date: 2010-06-15 11:21:15


Hi,

I just built boost 1.43 with the latest version of boost-log included
(from boost-log.sourceforge.net). I'm currently using the static,
multi-threaded debug libraries from the build:

libboost_log-vc80-mt-sgd-1_43.lib

At the end of this e-mail you can see the main() from my win32 console
application. However, I'm receiving many link errors like the
following:

libboost_log-vc80-mt-sgd-1_43.lib(trivial.obj) : error LNK2019:
unresolved external symbol "class boost::system::error_category const
& __cdecl boost::system::get_system_category(void)"
(?get_system_category_at_system@boost@@YAABVerror_category_at_12@XZ)
referenced in function "void __cdecl boost::system::`dynamic
initializer for 'system_category''(void)"
(??__Esystem_category_at_system@boost@@YAXXZ)

Any thoughts on what might be causing this? Below is my main(). Thanks!

------------------
#include <boost/log/trivial.hpp> // For "trivial" logging API
#include <iostream>
#include <string>

void main(int argc, char* argv[])
{
        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";

        // keep cmd window open
        std::cout << "press a key...";
        std::string whateva;
        std::cin >> whateva;
}
------------------


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