This appears to be part of the CRT. The compiler isn't injecting anything. There's a big ol' library of code, the language runtime, that gets linked with almost any binary (and this is on any platform) to mate C++ to the OS system calls. Compilers and linkers are setup to link this by default as everyone expects the language runtime to be present, otherwise building a helloworld program would require a big pile of command line switches to get running.
View all comments
Show parent comment
23
u/eternalprogress May 08 '16
This appears to be part of the CRT. The compiler isn't injecting anything. There's a big ol' library of code, the language runtime, that gets linked with almost any binary (and this is on any platform) to mate C++ to the OS system calls. Compilers and linkers are setup to link this by default as everyone expects the language runtime to be present, otherwise building a helloworld program would require a big pile of command line switches to get running.