Visual Studio 2010 Runtime Libraries

前端 未结 2 1602
北荒
北荒 2021-01-21 10:09

I wrote a tool that many users would use on their computers. I noticed however, that users who do not have visual studio installed, cannot open my executable. The error says tha

相关标签:
2条回答
  • 2021-01-21 10:44

    It is part of C++ runtime and the target machine needs it. THere are couple of ways to address it.

    Please check following link from Microsoft MCVCP100.DLL

    0 讨论(0)
  • 2021-01-21 10:53

    Yes, you can change a compiler setting to link the C++ standard library classes into your program instead of having a dependency on the DLL. Right-click your project in the Solution Explorer window, Properties. Switch to the Release configuration (upper left). C/C++, Code Generation, Runtime Library setting. Select /MT.

    Only do this when you only have a single monolithic EXE. When you use your own DLLs then you really need msvcr100.dll and msvcp100.dll so that the runtime library gets shared between all modules.

    0 讨论(0)
提交回复
热议问题