D
D
Denis2021-11-05 13:01:13
C++ / C#
Denis, 2021-11-05 13:01:13

I wrote a program in c++, but when I install it on another computer, I get an error MSVCP140D.dll, what should I do?

I wrote a program in c++, but when I install it on another computer, I get an error MSVCP140D.dll.
618500005434a057156653.jpeg6185000921bd4054307855.jpeg

This is a photo of the error from two computers. The only thing I've noticed is that computers that have Visual Studio installed don't get this error.

I assume that the c++ libraries need to be placed in the application folder.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergio, 2021-11-05
@NeYmen

Your program was most likely built in the Debug configuration, so the suffix D in the DLL name. Debugging libraries are usually not installed for ordinary users, only for those who installed Visual Studio.
You just need to make a release build of the program, I think. If that doesn't work, then install VC++ 2015 Redistributable on the target machine, or statically link against the standard library, as suggested by res2001 .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question