Boost logo

Boost :

Subject: [boost] [log] Setup Windows event log backends
From: Renato Forti (re.tf_at_[hidden])
Date: 2013-07-04 13:51:19


Hi,

I am trying setup a basic:
<http://www.boost.org/doc/libs/1_54_0/libs/log/doc/html/log/detailed/sink_ba
ckends.html#log.detailed.sink_backends.event_log> Windows event log, and I
copy and past code from log documentation. My app link with:

1> main.cpp

1> Linking to lib file: boost_filesystem-vc110-mt-gd-1_54.lib

1> Linking to lib file: boost_system-vc110-mt-gd-1_54.lib

1> Linking to lib file: boost_log-vc110-mt-gd-1_54.lib

1> Linking to lib file: boost_thread-vc110-mt-gd-1_54.lib

1> Linking to lib file: boost_log_setup-vc110-mt-gd-1_54.lib

1> Linking to lib file: boost_date_time-vc110-mt-gd-1_54.lib

1> Linking to lib file: boost_chrono-vc110-mt-gd-1_54.lib

But I have some link problems:

1>qt.obj : error LNK2019: unresolved external symbol "__declspec(dllimport)
public: __thiscall
boost::log::v2_mt_nt5::sinks::basic_simple_event_log_backend<char>::basic_si
mple_event_log_backend<char>(void)"
(__imp_??0?$basic_simple_event_log_backend_at_D@sinks_at_v2_mt_nt5_at_log@boost@@QAE@
XZ) referenced in function "class boost::shared_ptr<class
boost::log::v2_mt_nt5::sinks::basic_simple_event_log_backend<char> > __cdecl
boost::make_shared<class
boost::log::v2_mt_nt5::sinks::basic_simple_event_log_backend<char> >(void)"
(??$make_shared_at_V?$basic_simple_event_log_backend_at_D@sinks_at_v2_mt_nt5_at_log@boos
t@@@boost@@YA?AV?$shared_ptr_at_V?$basic_simple_event_log_backend_at_D@sinks_at_v2_mt
_nt5_at_log@boost@@@0_at_XZ)

1>qt.obj : error LNK2019: unresolved external symbol "__declspec(dllimport)
public: __thiscall
boost::log::v2_mt_nt5::sinks::basic_simple_event_log_backend<char>::~basic_s
imple_event_log_backend<char>(void)"
(__imp_??1?$basic_simple_event_log_backend_at_D@sinks_at_v2_mt_nt5_at_log@boost@@QAE@
XZ) referenced in function "public: void * __thiscall
boost::log::v2_mt_nt5::sinks::basic_simple_event_log_backend<char>::`scalar
deleting destructor'(unsigned int)"
(??_G?$basic_simple_event_log_backend_at_D@sinks_at_v2_mt_nt5_at_log@boost@@QAEPAXI_at_Z
)

1>qt.obj : error LNK2019: unresolved external symbol "__declspec(dllimport)
public: void __thiscall
boost::log::v2_mt_nt5::sinks::basic_simple_event_log_backend<char>::set_even
t_type_mapper(class boost::log::v2_mt_nt5::aux::light_function<enum
boost::log::v2_mt_nt5::sinks::event_log::event_type __cdecl(class
boost::log::v2_mt_nt5::record_view const &)> const &)"
(__imp_?set_event_type_mapper@?$basic_simple_event_log_backend_at_D@sinks_at_v2_mt
_nt5_at_log@boost@@QAEXABV?$light_function@$$A6A?AW4event_type_at_event_log_at_sinks@
v2_mt_nt5_at_log@boost@@ABVrecord_view_at_456@@Z_at_aux@345@@Z) referenced in
function "void __cdecl init_logging(void)" (?init_logging@@YAXXZ)

1>qt.obj : error LNK2019: unresolved external symbol "__declspec(dllimport)
public: void __thiscall
boost::log::v2_mt_nt5::sinks::basic_simple_event_log_backend<char>::consume(
class boost::log::v2_mt_nt5::record_view const &,class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &)"
(__imp_?consume@?$basic_simple_event_log_backend_at_D@sinks_at_v2_mt_nt5_at_log@boost
@@QAEXABVrecord_view_at_345@ABV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocat
or_at_D@2@@std@@@Z) referenced in function "protected: void __thiscall
boost::log::v2_mt_nt5::sinks::basic_formatting_sink_frontend<char>::feed_rec
ord<class boost::log::v2_mt_nt5::aux::fake_mutex,class
boost::log::v2_mt_nt5::sinks::basic_simple_event_log_backend<char> >(class
boost::log::v2_mt_nt5::record_view const &,class
boost::log::v2_mt_nt5::aux::fake_mutex &,class
boost::log::v2_mt_nt5::sinks::basic_simple_event_log_backend<char> &)"
(??$feed_record_at_Vfake_mutex_at_aux@v2_mt_nt5_at_log@boost@@V?$basic_simple_event_l
og_backend_at_D@sinks_at_345@@?$basic_formatting_sink_frontend_at_D@sinks_at_v2_mt_nt5_at_l
og_at_boost@@IAEXABVrecord_view_at_234@AAVfake_mutex_at_aux@234_at_AAV?$basic_simple_eve
nt_log_backend_at_D@1234@@Z)

 

What is wrong?

Thanks

 

 

 

 


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk