In general, it was necessary to write a console application consisting of several functions. Wrote in Visual studio 15 (C ++). It is necessary to send a solution to a person in the form of sources and an executable file.

The executable file should be run on a clean (!) Machine, i.e. dll should be provided to it.

To the source code there should be a description of how and what to build (what should I do? What is the source code?). The dll of the functions seems to be done, but it does not start on a machine where there is no VCredist (vcruntime140.dll). This can be solved at all, without installation, but like the rest, I do not know, a stupid question, but it puzzles me.

  • Something is wrong. " dll from functions, it seems, did " - this is why at all? - PinkTux
  • The executable file should be run on a clean (!) Machine, i.e. dll should be provided to it ... here for this - Fred
  • Once again, spell: why should the internal functions of the program be placed in separate dlls? What you say is nonsense, meaningless. Obviously here we are talking about some external dependencies that can occur (or maybe not, then no dll should be added ) - PinkTux
  • Well, well .. the main problem is that it does not start on a zero machine without vcruntime140.dll .. what to do with it? - Fred
  • one
    Obviously, 1) attach this same dll, or 2) rewrite it so as to get rid of dependency (there can be no specific advice without studying the source code), or 3) try building a program on the target machine - PinkTux

1 answer 1

Build with static linking libraries (/ MT in the command line, in the project properties - create code-> runtime library-> multi-threaded).