windows - Visual Studio C++ - How to avoid Visual C++ Redistributable Packages? -


this question has answer here:

when run program on freshly installed computer, tells me visual c++ redistributable package 2015 (namely, msvcp140.dll) needs installed on computer in order run dynamically linked program.

i understand static linking solve problem - however, doubles size of executable.

isn't there way suppress visual studio features redist package not necessary , still use visual studio compiler, i'm not used alternatives mingw etc.

or redist package contain stl? can hardly imagine that.

the 'redist packages' contain libraries. if don't use library functionality, not need them, otherwise there no way - can't call library function , don't have it.

that means remove includes <>, , good.

note if do use library functions, hardly option - don't want recode strlen, fopen, , on yourself.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -