
Hi, I am a beginner in using the Boost Libraries. I came across them when I was trying to implement the Boost Logging Framework version2 from John Torjo's website. I tried implementing the starter project(http://torjo.com/log2/doc/html/starter_project.html) from Boost Log documentation using Visual Studios 2005 IDE. I got the following 2 errors: error C2440: '<function-style-cast>' : cannot convert from 'const char [13]' to 'boost::logging::formatter::tag::time' and error C2780: 'void boost::logging::writer::format_write<formatter_base,destinatio n_base,lock_resource,apply_format_and_write,router_type,format ter_array,destination_array>::add_formatter(formatter,const boost::logging::char_type *)' : expects 2 arguments - 1 provided So, I commented the formatter::tag::time line assuming that I don't need time to be displayed for the time being. The program complied properly but it gave me link errors: error LNK2019: unresolved external symbol "struct boost::logging::filter::use_tss_with_cache<10> * __cdecl g_l_filter(void)" (?g_l_filter@@YAPAU? $use_tss_with_cache@$09@filter@logging@boost@@XZ) referenced in function "void __cdecl `anonymous namespace'::`dynamic initializer for 'ensure_log_is_created_before_maing_l_filter''(void)" (?? __Eensure_log_is_created_before_maing_l_filter@? A0x6e6fd73c@@YAXXZ) my_app_log.obj and error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup MSVCRTD.lib Please let me know whether I am missing some linker dependencies. Please help! -Nik Kale

nsk-4 wrote:
Hi,
I am a beginner in using the Boost Libraries. I came across them when I was trying to implement the Boost Logging Framework version2 from John Torjo's website. I tried implementing the starter project(http://torjo.com/log2/doc/html/starter_project.html) from Boost Log documentation using Visual Studios 2005 IDE. I got the following 2 errors:
<snip>
Please let me know whether I am missing some linker dependencies. Please help!
-Nik Kale _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Hi, the library was rejected on 2008-03-17 see http://lists.boost.org/boost-announce/2008/03/0181.php. Maybe you can send a mail directly to John Torjo's website. BTW John, do you plan to propose a new version of your library for review? Best, Vicente -- View this message in context: http://old.nabble.com/Linking-Errors-in-Boost-Logging-tp26965295p26965931.ht... Sent from the Boost - Dev mailing list archive at Nabble.com.

On 12/30/2009 03:58 AM, Vicente Botet Escriba wrote:
nsk-4 wrote:
Hi,
I am a beginner in using the Boost Libraries. I came across them when I was trying to implement the Boost Logging Framework version2 from John Torjo's website. I tried implementing the starter project(http://torjo.com/log2/doc/html/starter_project.html) from Boost Log documentation using Visual Studios 2005 IDE. I got the following 2 errors:
<snip>
Please let me know whether I am missing some linker dependencies. Please help!
Hi,
the library was rejected on 2008-03-17 see http://lists.boost.org/boost-announce/2008/03/0181.php.
I would recommend the Apache log4cxx library (http://logging.apache.org/log4cxx/index.html). It's more immediately usable than anything I have seen submitted for Boost to date, with appenders for the Windows EventLog, Unix syslog, email, database, file, socket, and others. http://logging.apache.org/log4cxx/index.html Which brings up a question for the boost community: what is the stance on re-inventing functionality that exists in other external projects, working with other groups like the ASF to combine efforts, or unofficially adopting third party libs into the fold? Rob
participants (3)
-
nsk@umd.edu
-
Rob Riggs
-
Vicente Botet Escriba