Re: forward declarations of gtkmm stuff



On Wed, 2 Jan 2008 06:51:09 -0800, I waved a wand and this message
magically appears in front of David L:

> On Jan 2, 2008 6:31 AM, Naveen Verma <ernaveenverma gmail com> wrote:
> 
> > Hi,
> >
> > Wt if you try to include only gtkmm.h?
> > #include <gtkmm.h>
> >
> 
> That would work, but what I'm trying to  avoid  is not  the
> clutter of include lines in the header file but the unnecessary
> header file dependencies for cpp files that include foo.h.
> For example, if bar.cpp includes foo.h so that it can instantiate
> a foo, it shouldn't need any gtkmm header dependencies.
> gtkmm.h makes the problem worse, because it includes lots of
> gtkmm headers, so the compiler would have to grovel through
> all of those headers to compile bar.cpp.

Can't you just use G++'s precompiled headers facility? 
-- 
http://www.munted.org.uk

Fearsome grindings.


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