
Markus Schöpflin wrote:
Gennadiy Rozental wrote:
Markus Schöpflin <markus.schoepflin <at> comsoft.de> writes:
ld: Unresolved: boost::debug::under_debugger(void)
I am seeing what may or may not be a related error under VC8 when building the prg_exec_monitor DLL. The linker is reporting 2 unresolved symbols: execution_monitor.obj : error LNK2019: unresolved external symbol "bool __cdecl boost::debug::attach_debugger(bool)" (?attach_debugger@debug@boost@@YA_N_N@Z) referenced in function "public: int __thiscall boost::detail::system_signal_exception::operator()(unsigned int,struct _EXCEPTION_POINTERS *)" (??Rsystem_signal_exception@detail@boost@@QAEHIPAU_EXCEPTION_POINTERS@@@Z) execution_monitor.obj : error LNK2019: unresolved external symbol "bool __cdecl boost::debug::under_debugger(void)" (?under_debugger@debug@boost@@YA_NXZ) referenced in function "public: int __thiscall boost::execution_monitor::execute(class boost::unit_test::callback0<int> const &)" (?execute@execution_monitor@boost@@QAEHABV?$callback0@H@unit_test@2@@Z) I am pretty sure this is because the Jamfile.v2 in libs/test/build does not include the debug source file in the list of PRG_EXEC_MON_SOURCES. I attached a patch for this jamfile to add the missing source. Thanks, -Dave Index: Jamfile.v2 =================================================================== --- Jamfile.v2 (revision 40610) +++ Jamfile.v2 (working copy) @@ -20,6 +20,7 @@ PRG_EXEC_MON_SOURCES = execution_monitor + debug cpp_main ;