Boost logo

Boost :

From: Andrew Schweitzer (a.schweitzer.grps_at_[hidden])
Date: 2005-11-13 20:55:07


I just upgraded to the latest .zip file from John's web site. Now I
can't seem to link. It can't find add_appender. This code built
previously. Any idea what's going on? Am I not building the logging
library correctly? I just cd to boot_root\libs\log\build, call
"vcvars32.bat", then "bjam". It seems to build.

If this line is uncommented:
manipulate_logs("*").add_appender(write_to_cout);

I get:
AppMsg.obj : error LNK2019: unresolved external symbol "void __cdecl
boost::logging::add_appender(struct boost::logging::default_log_manager
&,class std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &,class boost::function2<void,class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &,class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &,class
std::allocator<class boost::function_base> >,class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &,int)"
(?add_appender_at_logging@boost@@YAXAAUdefault_log_manager_at_12@ABV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@V?$function2_at_XABV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@ABV12_at_V?$allocator_at_Vfunction_base_at_boost@@@2@@2_at_1H@Z)
referenced in function "void __cdecl boost::logging::add_appender(class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &,class boost::function2<void,class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &,class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &,class
std::allocator<class boost::function_base> >,class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &,int)"
(?add_appender_at_logging@boost@@YAXABV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@V?$function2_at_XABV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@ABV12_at_V?$allocator_at_Vfunction_base_at_boost@@@2@@2_at_0H@Z)


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