How do you pack a visual studio c++ project for release?

前端 未结 6 1625
谎友^
谎友^ 2020-12-02 17:06

I\'m wondering how to make a release build that includes all necessary dll files into the .exe so the program can be run on a non-development machine without it having to in

6条回答
  •  忘掉有多难
    2020-12-02 17:43

    You need to set the run-time library (Under C/C++ -> Code Generation) for ALL projects to static linkage, which correlates to the following default building configurations:

    • Multithreaded Debug/Release
    • Singlethreaded Debug/Release

    As opposed to the "DLL" versions of those libraries.

    Even if you do that, depending on the libraries you're using, you might have to install a Merge Module/framework/etc. It depends on whether static LIB versions of your dependencies are available.

提交回复
热议问题