What is a “translation unit” in C++

前端 未结 11 696
既然无缘
既然无缘 2020-11-21 07:56

I am reading at the time the \"Effective C++\" written by Meyers and came across the term \"translation unit\".

Could somebody please give me an explanation of:

11条回答
  •  日久生厌
    2020-11-21 08:37

    Every cpp/c (implementation) file will be converted into a translation unit (ie.,object file (.obj)) headers in the cpp file will be replaced with the actual text from the header files.

提交回复
热议问题