From b31d0ad9893b993a551a191cf800438a83f6a2cf Mon Sep 17 00:00:00 2001 From: dima Date: Sun, 29 Jan 2023 15:52:05 +0300 Subject: [PATCH] fix context_data declaration 'class' -> 'struct' This only fires when compiling spdlog for MSVC with gcc and main-app with clang: spdlog.lib -> export -> ... class spdlog::details::context_data ... target <- import <- ... struct spdlog::details::context_data ... lld-link: error: undefined symbol: class std::shared_ptr __cdecl spdlog::snapshot_context_fields(void) --- include/spdlog/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/common.h b/include/spdlog/common.h index ab6bbf3dd7..34ee220179 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -370,7 +370,7 @@ struct Field { using F=Field; namespace details { - class context_data; + struct context_data; SPDLOG_API std::shared_ptr& threadlocal_context_head(); }