From 11979f1b13dd9bfe206c02f7dede10743adb34b7 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Mon, 6 May 2024 12:53:00 +0200 Subject: [PATCH] Fix Windows build error --- libsrc/core/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/core/utils.cpp b/libsrc/core/utils.cpp index 98e010a9..a93b1372 100644 --- a/libsrc/core/utils.cpp +++ b/libsrc/core/utils.cpp @@ -177,7 +177,7 @@ namespace ngcore Unload(); lib_name = lib_name_; #ifdef WIN32 - lib = LoadLibrary(lib_name.string().c_str()); + lib = LoadLibrary(lib_name.wstring().c_str()); if (!lib) throw std::runtime_error(string("Could not load library ") + lib_name.string()); #else // WIN32 auto flags = RTLD_NOW;