C++ Modules how to solve MSVC compiler error: compailns about internal linkage

I’m trying to package multiple 3rd parties into C++20 modules.
We are using CMake.
Latest CMake Versions have import std support.
I have already packed some 3rd parties (like fmt) and everything working fine, however some spdlog stuff does not seam to work.

Since CMake does not yet import header units I’m using the “using” keyword to export all needed definitions

This is my module

// Global module fragment where #includes can happen
module;

//included headers will not be exported to the client
#include <spdlog/spdlog.h>
#include <spdlog/sinks/rotating_file_sink.h>
#include <spdlog/sinks/sink.h>
#include <spdlog/details/null_mutex.h>
#include <spdlog/sinks/stdout_color_sinks.h>
#include <spdlog/sinks/basic_file_sink.h>
#include <spdlog/sinks/daily_file_sink.h>  //< this include causes the error

// first thing after the Global module fragment must be a module command
export module my_spdlog;


export
{
  namespace spdlog::sinks
  {
    using ::spdlog::sinks::daily_file_sink_mt;  //< this definition causes the error
    using ::spdlog::sinks::rotating_file_sink_mt;
    using ::spdlog::sinks::base_sink;
    using ::spdlog::sinks::sink;
    using ::spdlog::sinks::stdout_color_sink_mt;
    using ::spdlog::sinks::basic_file_sink_mt;
  }

  namespace spdlog::details
  {
    using ::spdlog::details::console_mutex;
    using ::spdlog::details::console_nullmutex;
    using ::spdlog::details::registry;
    using ::spdlog::details::null_mutex;
  }

  namespace spdlog
  {
    using ::spdlog::trace;
    using ::spdlog::debug;
    using ::spdlog::info;
    using ::spdlog::warn;
    using ::spdlog::error;
    using ::spdlog::critical;
    using ::spdlog::set_default_logger;
    using ::spdlog::default_logger;
    using ::spdlog::create;
    using ::spdlog::drop_all;
    using ::spdlog::set_level;
    using ::spdlog::get;
    using ::spdlog::register_logger;
    using ::spdlog::set_error_handler;
    using ::spdlog::flush_every;
    using ::spdlog::set_pattern;
    using ::spdlog::logger;
    using ::spdlog::get;
    using ::spdlog::drop;
    using ::spdlog::set_pattern;
    using ::spdlog::set_level;
    using ::spdlog::set_error_handler;
    using ::spdlog::register_logger;
    using ::spdlog::set_default_logger;
    using ::spdlog::default_logger;
    using ::spdlog::flush_every;
    using ::spdlog::sink_ptr;
    using ::spdlog::stdout_color_mt;
    using ::spdlog::stderr_color_mt;
    using ::spdlog::spdlog_ex;
  }
}


module: private;
//possible to include headers here, but they will not be exported to the client

This is a translation unit which consumes the module

#include <gtest/gtest.h>
import my_spdlog;


TEST(CxxModuleTest, spdlog)
{
  const std::string strFilename = "test.log";
  constexpr size_t nMaxFileSize = 1024 * 1024 * 5;
  constexpr size_t nMaxFileCount = 3;

  spdlog::sinks::rotating_file_sink_mt sink(strFilename, nMaxFileSize, nMaxFileCount);
  spdlog::sinks::stdout_color_sink_mt console_sink;
}

now when compiling this I’m getting a compiler warning (which is treated as an error)
C5304

a declaration designated by the using-declaration 'std::mktime' exported from this module has internal linkage and using such a name outside the module is ill-formed; consider declaring 'time_t mktime(tm *const )' 'inline' to use it outside of this module

Do you have an idea how to fix this.
Should I redeclare mktime()?

(Obviously I can disable this warning but this is not what i want 😉

thx guys for your help 🙂

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật