Need runtime in C ++?

Why do some C ++ projects require a run-time package and others do not?

EDIT: How to get a project to work without runtime?

+3
source share
4 answers

Some of them will be statically linked, while others will depend on the dynamic library loaded at runtime. To link your own project statically, you need to change the project configuration - how you do it depends on the compiler / linker and / or IDE you use.

+8
source

, , . , .

:

  •  
  • .  
  • , .  
  • .

:

  •  
  • .  
  • dificult.

:

  •  
  • .  
  • .

:

  •  
  • .

, .

+2

, 1 VS2005. - MS , , , VS2005sp1, .

+1

, C/++, DLL, . , - C/++ statically ( ++). .

If not, you can use the walker dependency tool from the Visual Studio distribution to identify the DLLs your application needs and just put them next to your executable.

What you should know in Visual Studio 2005 and later is that there are manifestos for binaries (and probably will :) make your life harder. Specifically, since SP1 for Visual Studio 2005 changes the C ++ library version and develops as well.

+1
source

Source: https://habr.com/ru/post/1705773/


All Articles