Boost 1.79.0
GCC 11.2.0, -std=gnu++20
Linux 3.10 x86_64
Using a compiled shared object libboost_unit_test_framework.so and sources compiled with -DBOOST_TEST_DYN_LINK leads to undefined reference linker errors when creating/using boost::test::output::xml_log_formatter instances, that are not found when using compiler_log_formatter instances.
The culprit seems to be that the definition of class xml_log_formatter is missing the BOOST_TEST_DECL visibility macro that compiler_log_formatter has.
Boost 1.79.0 GCC 11.2.0, -std=gnu++20 Linux 3.10 x86_64
Using a compiled shared object libboost_unit_test_framework.so and sources compiled with -DBOOST_TEST_DYN_LINK leads to undefined reference linker errors when creating/using boost::test::output::xml_log_formatter instances, that are not found when using compiler_log_formatter instances.
The culprit seems to be that the definition of class xml_log_formatter is missing the BOOST_TEST_DECL visibility macro that compiler_log_formatter has.