MSVCP140d.dll

alice 21 Reputation points
2022-04-10T06:59:11.377+00:00

I just create cmake project with vs2019. It run fail.

Env : I install vs2019 and vs2022. Before I remove vs2022, it can run.

I try it and it cant work.
https://www.microsoft.com/en-us/download/confirmation.aspx?id=48145
https://learn.microsoft.com/en-us/answers/questions/259875/msvcp140-missing.html

191565-image.png

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,199 questions
0 comments No comments
{count} votes

Accepted answer
  1. RLWA32 45,691 Reputation points
    2022-04-10T12:58:44.137+00:00

    MSVCP140D.dll is the debug version of the library. When development tools like Visual Studio are installed the debug versions of libraries ("D" suffix in the dll name) are part of the installation.

    The debug versions are NOT included in the Visual C++ redistributables (either x86 or x64).

    You wrote " I install vs2019 and vs2022. Before I remove vs2022, it can run." Perhaps the uninstall of VS2022 deleted the debug versions of libraries from the system. If VS2019 is still installed try repairing it. Hopefully, the missing library will be re-installed.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. T. Kujala 8,721 Reputation points
    2022-04-10T08:09:00.36+00:00

    Hi @alice ,

    Have you installed both versions?

    x64 and x86

    https://www.microsoft.com/en-US/download/details.aspx?id=48145

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.