D
D
Daniel Demidko2019-01-21 16:38:01
C++ / C#
Daniel Demidko, 2019-01-21 16:38:01

How to make application independent from VC++ Redistributable?

When I used TDM-GCC, the output was a binary that runs on any Windows system from XP to 10, without any external dependencies.
Now I have switched to Visual Studio, and, accordingly, to the msvc compiler. The size of the output binary has become much smaller, but now it looks like it will require "Visual C++ Redistributable" installed on the system to work.
How can you get rid of this addiction? And, if you can easily explain the very concept of "runtime", is it only in C ++ or in C too?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SerJook, 2019-01-21
@SerJook

Connect a static runtime, and then there will be no dependency.
Solution Properties -> C\C++ -> Code generation -> Runtime Library -> Multi-threaded (/MT)
5c461267175c3212801722.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question