Boost logo

Boost :

From: David Deakins (ddeakins_at_[hidden])
Date: 2007-10-30 16:22:54


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_at_debug@boost@@YA_N_N_at_Z) referenced in function "public:
int __thiscall
boost::detail::system_signal_exception::operator()(unsigned int,struct
_EXCEPTION_POINTERS *)"
(??Rsystem_signal_exception_at_detail@boost@@QAEHIPAU_EXCEPTION_POINTERS@@@Z)

execution_monitor.obj : error LNK2019: unresolved external symbol "bool
__cdecl boost::debug::under_debugger(void)"
(?under_debugger_at_debug@boost@@YA_NXZ) referenced in function "public:
int __thiscall boost::execution_monitor::execute(class
  boost::unit_test::callback0<int> const &)"
(?execute_at_execution_monitor_at_boost@@QAEHABV?$callback0_at_H@unit_test_at_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
   ;
 


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