My friend and I are making a game using C++ and the sfml graphics library. We are almost done, but every time we manually put the .exe (and necessary assets) on a computer that doesn't have visual studios installed it gives an error. The error is: The program can't start because MSVCP120D.dll is missing from your computer. Try reinstalling the program to fix this problem. After making a copy of the .dll file and placing it in the local application folder, it came up with another error: The application was unable to start correctly (0xc000007b). I've seen a few posts on stack over flow and other resources, but the questions are usually lacking in detail and go unanswered.
Asked
Active
Viewed 152 times
1
-
1Only ever deploy the Release build of your program. And don't copy the wrong file, you probably got that one from c:\windows\system32. Look in C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\redist for the correct one, pay attention to the platform target. – Hans Passant Jun 20 '16 at 21:29
1 Answers
1
You need to download the Visual C++ Redistributable Package for Visual Studio 2013 (VC++ v12) and install it.

lfgtm
- 1,037
- 6
- 19
-
Thank you for your answer. We have downloaded the package, but are unsure how to implement it. Can you point me in the direction of a tutorial or personal insight in to how to use the package? – Cody Jun 20 '16 at 22:04
-
You simply install it on the machine you wish to run your program on. It provides the run-time execution environment for VC++ programs to run without having VS installed. – lfgtm Jun 21 '16 at 05:34
-
After doing that, we still got the "The application was unable to start correctly (0xc000007b)" error. – Cody Jun 21 '16 at 22:21
-
What other dependencies are you using? [Here is another SO question and answer which may help you](http://stackoverflow.com/questions/10492037/the-application-was-unable-to-start-correctly-0xc000007b). – lfgtm Jun 22 '16 at 09:17
-
So, we are using the standard **kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib** in addition to the sfml dependencies. We tried using dependency walker per the Q&A you linked to, but it seemed to not be the answer we are looking for. – Cody Jun 29 '16 at 19:32