Boost logo

Boost-Build :

Subject: [Boost-build] Linking Errors in Boost Logging
From: nsk_at_[hidden]
Date: 2009-12-28 18:17:23


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
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'


error C2780: 'void
boost::logging::char_type *)' : expects 2 arguments - 1

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_at_filter@logging_at_boost@@XZ) referenced
in function "void __cdecl `anonymous namespace'::`dynamic
initializer for
'ensure_log_is_created_before_maing_l_filter''(void)" (??
A0x6e6fd73c@@YAXXZ) my_app_log.obj


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


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at