How static link dll msvcr120.dll?
Marcone
marcone at email.com
Thu Jun 1 15:05:40 UTC 2023
On Tuesday, 30 May 2023 at 05:18:11 UTC, novice2 wrote:
> 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.
I linked msvcr120.lib, but the executable still ask for
msvcr120.dll not found.
More information about the Digitalmars-d-learn
mailing list