How to use stdafx.h properly?

前端 未结 5 549
借酒劲吻你
借酒劲吻你 2020-12-31 06:56

What is the proper way to use stdafx.h, in terms of separating dependencies?

If I put everything in there, then my compiles ar

5条回答
  •  礼貌的吻别
    2020-12-31 07:43

    Yor compiler might have a "show includes" flag. Turn it on, and look for deeply nested include hierarchies that are repeated. Consider including one of the most shallow include files to your header for each such deep trees.

提交回复
热议问题