How static link dll msvcr120.dll?
Mike Parker
aldacron at gmail.com
Thu Jun 1 15:30:13 UTC 2023
On Thursday, 1 June 2023 at 15:05:40 UTC, Marcone wrote:
>
>
> I linked msvcr120.lib, but the executable still ask for
> msvcr120.dll not found.
msvcr120.lib is a "link library", not a static library. On other
systems, you pass shared libraries directly to the linker and it
will pull the information it needs from there to set up the
exectuable with what it needs for the system loader to load the
shared library at runtime. Windows works differently. The
compiler puts all that information in a link library when it
creates the DLL, and you pass that to the linker instead of the
DLL.
Windows system libraries are not distributed as static libraries
as far as I know.
More information about the Digitalmars-d-learn
mailing list