Is MSVCRT under Windows like glibc (libc) under *nix?

后端 未结 4 1928
死守一世寂寞
死守一世寂寞 2021-02-01 04:38

I frequently come across Windows programs that bundle in MSVCRT (or their more current equivalents) with the program executables. On a typical PC, I would find many copies of t

4条回答
  •  情话喂你
    2021-02-01 05:05

    [I'm the current maintainer of the Native SxS technology at Microsoft]

    New versions of MSVCRT are released with new versions of Visual Studio, and reflect changes to the C++ toolset. So that programs compiled with versions of VS released after a particular version of Windows continue can work downlevel (such as VS 2008 projects on Windows XP), the MSVCRT is redistributable, so it can be installed there.

    CRT installation drops the libraries into %windir%\winsxs\, which is a global system location, requiring administrator privileges to do so.

    Since some programs do not want to ship with an installer, or do not want the user to need administrator privileges on the machine to run their installer, they bundle the CRT directly in the same directory as the application, for private use. So on a typical machine, you'll find many programs that have opted for this solution.

提交回复
热议问题