Boost logo

Boost :

From: K. Noel Belcourt (kbelco_at_[hidden])
Date: 2007-09-12 16:41:47


Hi,

I'm trying to run the trunk version of boost/libs/config tests and am
getting this linker error from limits_test with the Pathscale 3.0
compiler.

pathscale.link ../../../bin.v2/libs/config/test/limits_test.test/
pathscale-3.0/debug/threading-multi/limits_test

/var/scratch/boost/libs/config/test/limits_test.cpp:85: undefined
reference to `boost::unit_test::unit_test_log_t::set_checkpoint
(boost::unit_test::basic_cstring<char const>, unsigned long,
boost::unit_test::basic_cstring<char const>)'

Now poking around boost/test, I found set_checkpoint defined in impl/
unit_test_log.ipp, which is apparently never included into <boost/
test/test_tools.hpp>. Here's how I found this.

[boost/test] pwd
/var/scratch/boost/boost/test

[boost/test] find . -type f -exec grep -H impl/unit_test_log.ipp {} \;
./included/unit_test.hpp:#include <boost/test/impl/unit_test_log.ipp>
./included/test_exec_monitor.hpp:#include <boost/test/impl/
unit_test_log.ipp>

[boost/test] find . -type f -exec grep -H included/unit_test.hpp {} \;
./included/unit_test_framework.hpp:#include <boost/test/included/
unit_test.hpp>

[boost/test] find . -type f -exec grep -H included/
test_exec_monitor.hpp {} \;

[boost/test] find . -type f -exec grep -H included/
unit_test_framework.hpp {} \;

So how is boost/libs/config/test/limits_test supposed to pick up
set_checkpoint and other missing Boost.test symbols? What am I missing?

Thanks.

-- Noel


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