Including wxprec.h from inside another header, bad idea?

Tim Stahlhut stahta01 at verizon.net
Mon Aug 6 20:01:23 PDT 2007


Vadim Zeitlin wrote:

> On Fri, 3 Aug 2007 20:57:41 +0000 (UTC) Tim Stahlhut <stahta01 at verizon.net> wrote:
>
> TS> A rule that makes sence to me is, do not include precompiled headers
> TS> from inside headers.
>
>  I agree this rule makes sense from general principles but I didn't know
> that breaking it could result in the code not compiling. And I'd like to
> know why exactly does it happen, do you you know it?
>
>  Thanks,
> VZ

Sorry, I was not clear. The code has no compile or link errors both with
and without the patch. I was exspecting to have to add missing includes
to get the code to compile, but it was not nessary after removing
precompiled headers.

I was just thinking if the rule makes since to you that the patch should
be applied so that bad examples of how to use wxWidgets is removed from
Samples and Demos code.

Tim S






More information about the wx-dev mailing list