Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VCRUNTIME140_1.dll missing after building solution with c++

Tags:

h c++

I've created a small text adventure. I've built the solution with Visual Studio Community 2019 using Release and x64 settings. I've zipped up the *.exe file along with the other generated files and sent them to another pc that doesn't have VS installed and the error you see in the image came up. I've searched my pc and the file exists in a couple of different folders, one of them being system32 so i don't know where to place the file on the new pc.

Any help would be appreciated. Thank you

like image 376
Tsubaki13 Avatar asked Nov 13 '19 01:11

Tsubaki13


People also ask

Why vcruntime140_1 dll was not found?

Errors related to vcruntime140_1.dll can arise for a few different different reasons. For instance, a faulty application, vcruntime140_1.dll has been deleted or misplaced, corrupted by malicious software present on your PC or a damaged Windows registry.

How do I fix vcruntime140 dll is missing from my computer?

To fix the VCRuntime140 dll or MSVCP140 dll error you need to install the correct library (Microsoft Visual C++ Redistributable package) on your computer. Now there are two libraries you can install: One for 64-bit applications and one for 32-bit applications. Choose the one right for your PC and install it.

Where should vcruntime140_1 dll be located?

Keep in mind that you will have to re-register missing vcruntime140_1. dll runtime file properly if the problem still exists. All you have to do is to copy the DLL file to the System32 folder.


1 Answers

Per @user4581301's comment, the answer is to download a current Microsoft Visual C++ redistributable for the appropriate architecture (i.e. x64).

As I already had a 2019 of the redestributable installed, I had to install the corresponding 2015-2019 x64 distributable.

like image 188
Martin Smith Avatar answered Oct 04 '22 05:10

Martin Smith