compile: link dynamic OR static library in Windows
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Sat Feb 4 15:56:41 UTC 2023
On Windows you don't link directly against a DLL.
You link against a static library (.lib) of the same name.
The binding doesn't change between a static library and a shared library
as long as you're linking during the compilation sequence and not during
For dub, it should be as simple as putting the name of the dll (and with
that the import library) into the libs directive. As long as its some
place where the linker will see it and is the right arch, it should work.
Treat the import library like a static library, because that is what it is.
More information about the Digitalmars-d-learn