vs2015 动态链接库问题

问题:

    最近要用vs2015编写一个动态链接库,生成动态链接库后,换到另一台windows下发现无法使用.

使用depends检查发现原因是缺少 MSVCP140.DLL等动态链接库。

 

解决:

    将编译选项由默认的/MD替换成/MT即可。

  1. Open the project's Property Pages dialog box. For details, see Setting Visual C++ Project Properties.
  2. Click the C/C++ folder.
  3. Click the Code Generation property page.
  4. Modify the Runtime Library property.

出处:

http://stackoverflow.com/questions/35805113/visual-studio-2015-run-time-dependencies-or-how-to-get-rid-of-universal-crt

https://msdn.microsoft.com/zh-cn/library/2kzt1wy3.aspx

posted on 2017-02-08 20:09  兔子二  阅读(160)  评论(0编辑  收藏  举报

导航