Search code examples
c++crt

CRT AND C++ SOFT


I don't understand why when you build a c++ soft you need to link in the C runtime library? Is it because standard c++ library use it ?


Solution

  • It starts with main(), runtime support code is needed to pass the argc and argv arguments and do something with the return value. Etcetera. That code lives in the CRT.