Running .exe without copying .dlls

前端 未结 1 379
失恋的感觉
失恋的感觉 2021-01-06 07:02

I have Visual Studio 2015 solution ready for delivery. I have a requirement that the .exe should run out of the box. However, I am getting \"missing dll...\" errors. Is ther

相关标签:
1条回答
  • 2021-01-06 07:36

    Yes, you have to statically link the binary. In the project settings (Configuration Properties -> C/C++ -> Code Generation), use /MT, /MTd for the Release, Debug configurations respectively. However, this bloats the size of the executable.

    MSDN documentation on /MT, /MTd options

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