MinGW precompiled headers?

Community Forums/General Help/MinGW precompiled headers?

marksibly(Posted 2010) [#1]
Hi,

Has anyone got precompiled headers working with MinGW/G++?

My G++ version is 3.4.5...


N(Posted 2010) [#2]
I think you should be able to create them just by doing `gcc -c header.h -o header.h.gch`. That said, when it comes to reusing them later, I'm not sure. I assume GCC automatically searches for the .gch file when that header is included, but I could be wrong.


xlsior(Posted 2010) [#3]
Any reason you're using an old version?


Grisu(Posted 2010) [#4]
+1


marksibly(Posted 2010) [#5]
Hi,

> doing `gcc -c header.h -o header.h.gch`.

Thanks, will give that a go.

> Any reason you're using an old version?

Not really, although I couldn't make any sense of the latest mingw-get installer:

http://sourceforge.net/projects/mingw/

...although I didn't try very hard.