Re: [gtkmm] precompiled headers

Christer Palm wrote:

Would it be possible to build a precompiled header for gtkmm as well?

Did some more testing, and as a matter of fact it is quite possible.
g++34 -c `pkg-config --cflags gtkmm-2.4` -o gtkmm.gch /.../include/gtkmm-2.4/gtkmm.h

indeed produces a whopping 40MB .gch file. Unfortunately, it does nothing good for compile times... Testing it with the helloworld example added ~5s on the compile time, and for the slightly more complex cellrenderercustom/testpopup example, which also uses <gtkmm.h> throughout, the compile time is about the same as without a precompiled gtkmm.h.

I don't know if I did something wrong, or if that's how it works. But OTOH the gtkmm headers are very different from the stdc++ headers in that they are almost 100% declarations, so a different result is not surprising.

Christer Palm

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]