On Thursday 02 September 2004 07:49, Steven T. Hatton wrote:
For some reason the file that should be found here was omitted in the SuSE 9.1 distrubution: file:/usr/share/doc/packages/boost-doc/libs/test/doc/examples/exec_mon_exam ple.html I believe this is part of the same boost distribution: http://www.boost.org/libs/test/example/exec_mon_example.cpp
When I try to build it, I get the following error:
g++ -o exec_mon_example exec_mon_example.cpp
/tmp/ccjpo1st.o(.text+0x11c): In function `main': : undefined reference to `boost::execution_monitor::execute(bool, int)'
collect2: ld returned 1 exit status I found this in the boost tarball with the example code is:
# (C) Copyright Gennadiy Rozental 2001-2003. # Use, modification, and distribution are subject to the # Boost Software License, Version 1.0. (See accompanying file # LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) # # See http://www.boost.org/libs/test for the library home page. subproject libs/test/example ; rule boost-test-example ( example-name : lib-name ) { exe $(example-name) : $(example-name).cpp <lib>../build/$(lib-name) : <sysinclude>$(BOOST_ROOT) <stlport-iostream>on <borland><*><cxxflags>-w-8080 ; } boost-test-example exec_mon_example : boost_prg_exec_monitor ; boost-test-example prg_exec_example : boost_prg_exec_monitor ; boost-test-example test_exec_example : boost_test_exec_monitor ; boost-test-example unit_test_example1 : boost_unit_test_framework ; boost-test-example unit_test_example2 : boost_unit_test_framework ; boost-test-example unit_test_example3 : boost_unit_test_framework ; boost-test-example unit_test_example4 : boost_unit_test_framework ; boost-test-example unit_test_example5 : boost_unit_test_framework ; boost-test-example test_case_template_example : boost_unit_test_framework ; ############# EOF############# That seems to work. I also discovered that `jam -n' will dump what bjam is doing when it builds. I'm wondering what it will take to get boost to play nicely with make. -- Regards, Steven