Boost logo

Boost :

From: Alex Besogonov (cyberax_at_[hidden])
Date: 2005-12-10 07:51:41


Good <time-of-day>!

GCC4.1.0 fails to compile Boost.Test with -fprofile-arcs or
-ftest-coverage compiler options. I've traced compiler error to "void
xml_report_formatter::test_unit_report_start( test_unit const& tu,
std::ostream& ostr )" function.

GCC on Windows just fails with an ICE. GCC4.1 on Linux finishes
compilation successfully but fails to link the resulting executable with
erorrs like this:
===============================================================
/home/cyberax/FlexIDE/libs/boost/bin.v2/libs/test/build/gcc/debug/threading-mult
i/libboost_unit_test_framework-gcc-mt-d-1_33.so.1.33.0: undefined
reference to `global constructors keyed to
_ZN5boost9unit_test97_GLOBAL__N__home_cyberax_FlexI
DE_libs_boost_libs_test_src_results_collector.cpp_00000000_75CE510517results_col
lectorE'
===============================================================

Has anybody encountered this problem?

PS: Is there any interest for GCOV (GNU Coverage tool) support in
Boost.Build v2 for test coverage analysis?

-- 
With respect,
             Alex Besogonov (cyberax_at_[hidden])

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