How to leave Visual Studio 2013 dlls dependencies behind?

后端 未结 3 938
星月不相逢
星月不相逢 2021-02-09 14:18

My application when opened in others computer will give an error missing msvcr\"something\".dll, I found out that to fix this they need to install the following: http://www.micr

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-09 15:22

    Try to set /MT for Release and /MTd for Debug in Project Settings->C/C++->Code Generation. This will make your program not dependent on Visual Studio libraries. But beware that all the libraries/ projects you will link with should also have the same option there, otherwise you'll get nasty linker errors.

    You may also wish to select v120_xp in General->Platform Toolset for your program to be able to run on Windows XP

提交回复
热议问题