How static link dll msvcr120.dll?

novice2 sorryno at em.ail
Tue May 30 05:18:11 UTC 2023


you cannot "static link dll", "d" in "dll" is "dynamic".
you can implicity or explicity load dll.

https://learn.microsoft.com/en-us/cpp/build/linking-an-executable-to-a-dll?view=msvc-170

may be you mean static link msvcr120.lib?
i am not windows guru, but you need msvcr120.lib (there is 2 
version of .lib - one small for use .dll and contain only 
reference to code in dll, other large, for static linking, 
contains all code).

to link mylib.lib you can use pragma(lib, "mylib.lib") in D code.



More information about the Digitalmars-d-learn mailing list