After building exe using VS 2010 C++ missing MSVCP100.dll

前端 未结 4 407
面向向阳花
面向向阳花 2021-01-31 10:52

I have designed an application that requires no install and can be used by non-administrators. I would rather not lose this functionality but when I use the .exe on other comput

4条回答
  •  无人及你
    2021-01-31 11:40

    Configure your project to statically link to the C/C++ runtime instead of linking to the runtime DLL:

    • Configuration Properties | C/C++ | Code Generation | Runtime Library

    Select Multi-threaded (/MT) (or Multi-threaded Debug (/MTd) for your debug build).

    As an alternative, you should be able to get xcopy deployment of the C/C++ runtime DLL using the technique documented on http://msdn.microsoft.com/en-us/library/ms235291.aspx under the heading "Deploying Visual C++ library DLLs as private assemblies". I haven't tried that technique, as it's generally simpler to just statically link if you need xcopy installation of a native C++ program.

提交回复
热议问题