M
M
Moolzv Rivers2019-10-24 17:11:47
visual studio
Moolzv Rivers, 2019-10-24 17:11:47

How to correctly compile a C++ program in Visual Studio so that such an error does not occur on other PCs?

Hello.
Recently I wrote a relatively large program, I think what kind of program it doesn’t matter, the problem was that when I started it on a friend’s computer, it knocked out an error saying that some mscvr.dll was not found (sorry if I wrote it wrong),
How to compile what would this dll was already in the exe? A friend said he has Visual C++ installed
Added: I have Visual Studio 2017

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
maaGames, 2019-10-24
@SaddledSharp

vc_redist.x64.exe
Take in the folder with the compiler, or download from the Microsoft website and supply it with the program.
You can use static linking (CRT and MFC need to be static linked), but it's better to install redist.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question