Dlopen on Windows via dlfcn-win32

I notice that std.c.dlopen exists as part of the std API but this does not have an implementation on Windows.

Would it make sense to incorporate the following project into Zig to make it easier to write cross platform code that loads a dynamic library?

Have you checked out zig/lib/std/dynamic_library.zig at master · ziglang/zig · GitHub ?

1 Like

I did see it, but I was not sure that I was looking at public API.

One big difference is how dlfcn-win32 sets up the DLL search path: