I am creating a game playable on windows with cocos2d-x3.17.
In Visual Studio 2017, I set properties -> c / c ++ -> Code Generation-> Runtime Library to Multi-threaded DLL (/ MD) and built with Release configuration.
When I run the exe file on the pc I built it, I was able to play the game.
However, when I move Release.win32 folder to another pc and tried to execute it, I got errors that MSVCP140.dll and VCRUNTIME140.dll are missing, and I failed to execute.
Even after installing redist_x86 of VisualStudio2017 and restart pc, same errors occurred and execution failed.
When I build the game after setting the Runtime Library to Multi-threaded (/ MT), I get errors such as unresolved externals and the build fails.
How can I create a game that can be run on other pc?
Should I build with MD or MT?