LNK2001 Bei Verwendung von MSVC, C ++ 20 Vformat, C ++ 20 Modul und DLLC++

Programme in C++. Entwicklerforum
Anonymous
 LNK2001 Bei Verwendung von MSVC, C ++ 20 Vformat, C ++ 20 Modul und DLL

Post by Anonymous »

Ich begegne Linker -Fehler bei der Verwendung von STD :: Vformat in einer exportierten Funktion eines C ++ 20 -Moduls in einer DLL. The minimal project setup to reproduce this issue is as follows:
  • MainSolution

    DLL Project
  • Startup Project

Code: Select all

Startup Project
hängt vom DLL -Projekt ab und wird korrekt eingerichtet.

Code: Select all

export module MyModule;
import ;
import ;
import ;
export template
void __declspec(dllexport) MyLog(const char* format, Args... args) {
auto str = std::vformat(format, std::make_format_args(args...));
std::cout

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post