MinGW precompiled headers?
Community Forums/General Help/MinGW precompiled headers?
| ||
Hi, Has anyone got precompiled headers working with MinGW/G++? My G++ version is 3.4.5... |
| ||
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. |
| ||
Any reason you're using an old version? |
| ||
+1 |
| ||
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. |