Visual studio 2015 run-time dependencies or how to get rid of Universal CRT?

前端 未结 5 1019
悲哀的现实
悲哀的现实 2020-11-30 03:29

Compiled couple of .dll\'s using visual studio 2015, and tried to deploy on some older windows 7 / 64 bit. Tried also to guess which dll\'s are needed for application to sta

5条回答
  •  情深已故
    2020-11-30 03:48

    I was able to solve this by setting the C/C++ > Code Generation > Runtime Library compiler option

    • For Debug: from /MDd to /MTd
    • For Release: from /MD to /MT

    This removed all the API-MS-WIN-CRT-* and runtime dll references and caused all the CRT code to be statically linked.

    Details on the new VS2015 Universal CRT (dynamic and static) are here: https://msdn.microsoft.com/en-us/library/abx4dbyh.aspx

提交回复
热议问题