MS VC++ how to build DLL without requiring vc redist

后端 未结 1 729
我寻月下人不归
我寻月下人不归 2021-01-18 11:23

I\'m trying to build a simple .Net wrapper around some basic C++ code.

The C++ code does not rely on anything in the vcredist dlls, so I\'m wondering if I can setup

相关标签:
1条回答
  • 2021-01-18 11:25

    You need to link your DLL with the "Use the CRT as a static library" option:

    Project properties / Configuration / C/C++ / Code Generation / Runtime library / Multithreaded (ie. not any of the "DLL" options).

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