boostorg / boostorg/test

xml_log_formatter missing BOOST_TEST_DECL leads to linker errors

Open
#346 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
213
Forks
149
Avg merge
18h 17m
Merged PRs (30d)
2

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.