logging library link error

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@logging@boost@@YAXAAUdefault_log_manager@12@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$function2@XABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV12@V?$allocator@Vfunction_base@boost@@@2@@2@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@logging@boost@@YAXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$function2@XABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV12@V?$allocator@Vfunction_base@boost@@@2@@2@0H@Z)

Hi Andrew,
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);
This is very strange. I tried it myself again, and the programs build without error. Perhaps you're still linking against the old version of the Log.lib. If you're using VC7.1, I assume you should go to: Project/Properties. In the Linker tab, update the "Additional Library Directories". Anyway, I've posted a new version - so please try get that. If it still doesn't work, please send me the code privately : john at torjo dot com Best, John -- John Torjo, Contributing editor, C/C++ Users Journal -- "Win32 GUI Generics" -- generics & GUI do mix, after all -- http://www.torjo.com/win32gui/surfaces.html - Sky's the limit! -- http://www.torjo.com/cb/ - Click, Build, Run!

Works fine now with latest, although I suspect it wasn't the version differences but rather that I did something like copy the boost\log directory but not the libs\log directory. Andrew wrote:
I just upgraded to the latest .zip file from John's web site. Now I can't seem to link.
[snip] John Torjo wrote:
This is very strange. I tried it myself again, and the programs build without error.
[snip]
Anyway, I've posted a new version - so please try get that. If it still doesn't work, please send me the code privately : john at torjo dot com
Best, John
participants (2)
-
Andrew Schweitzer
-
John Torjo