1

I've been trying to use precompiled headers mentioned here: Precompiled headers with GCC

But after compiling my precompiled header file.h.gch, when I compile other files that include file.h with the -H option, instead of seeing

! /my/precompiled/header/file.h.gch

I'm seeing

x /my/precompiled/header/file.h.gch

Any idea what this means? The documentation doesn't mention either(! or x ).

Community
  • 1
  • 1
wizurd
  • 3,541
  • 3
  • 33
  • 50
  • It does mention both, in the [Preprocessor Options section](https://gcc.gnu.org/onlinedocs/gcc/Preprocessor-Options.html#Preprocessor-Options), under `-H`: "an invalid precompiled header file is printed with ‘...x’ and a valid one with ‘...!’ ". Did you use the same options for the precompilation as for compilation? – molbdnilo Sep 13 '16 at 20:46
  • Ah..didn't check there. I thought I did...I'll check... – wizurd Sep 13 '16 at 20:47
  • Thanks. that was definitely the problem... – wizurd Sep 13 '16 at 21:05

0 Answers0