What is a .h.gch file?

后端 未结 5 1697
伪装坚强ぢ
伪装坚强ぢ 2020-12-04 11:51

I recently had a class project where I had to make a program with G++.

I used a makefile and for some reason it occasionally left a .h.gch file behind.

So

5条回答
  •  南方客
    南方客 (楼主)
    2020-12-04 12:25

    a) They're precompiled headers: http://gcc.gnu.org/onlinedocs/gcc/Precompiled-Headers.html

    b) They contain "cached" information from .h files and should be updated every time you change respective .h file. If it doesn't happen - you have wrong dependencies set in your project

提交回复
热议问题