Why use precompiled headers (C/C++)?

后端 未结 5 460
傲寒
傲寒 2020-12-01 01:00

Why use precompiled headers?


Reading the responses, I suspect what I\'ve been doing with them is kind of stupid:

#pragma once

// Defines used         


        
5条回答
  •  自闭症患者
    2020-12-01 01:06

    So you don't have to compile them every time you build your project. They're used for system headers that aren't going to change.

提交回复
热议问题