Problem building Boost test framework

Hi, I am trying to build the libraries for the Boost test framework myself (using my own CMake files) instead of using bjam. When trying to link the file execution_monitor.cpp debug.cpp cpp_main.cpp into a dynamic library libboost_prg_exec_monitor.dylib I get the following linker erros: Linking CXX shared library libboost_prg_exec_monitor.dylib ld: warning: duplicate dylib /usr/lib/libpthread.dylib Undefined symbols: "boost::debug::attach_debugger(bool)", referenced from: _execution_monitor_attaching_signal_handler in execution_monitor.cpp.o "boost::debug::under_debugger()", referenced from: boost::execution_monitor::execute(boost::unit_test::callback0<int> const&)in execution_monitor.cpp.o Do I need to link additional files? Matthias

Matthias Troyer <troyer <at> phys.ethz.ch> writes:
Hi,
I am trying to build the libraries for the Boost test framework myself (using
my own CMake files) instead of
using bjam. When trying to link the file execution_monitor.cpp debug.cpp cpp_main.cpp into a dynamic library libboost_prg_exec_monitor.dylib I get the following linker erros:
Linking CXX shared library libboost_prg_exec_monitor.dylib ld: warning: duplicate dylib /usr/lib/libpthread.dylib Undefined symbols: "boost::debug::attach_debugger(bool)", referenced from: _execution_monitor_attaching_signal_handler in execution_monitor.cpp.o "boost::debug::under_debugger()", referenced from: boost::execution_monitor::execute(boost::unit_test::callback0<int> const&)in execution_monitor.cpp.o
Do I need to link additional files?
These should be defined in debug.cpp (and implemented in debug.ipp) Make sure this file is included and check to see the content of preprocessed file if the issues still outstanding. Gennadiy
participants (2)
-
Gennadiy Rozental
-
Matthias Troyer