mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
Fix Windows build error
This commit is contained in:
parent
96bf1453d3
commit
11979f1b13
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user