[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Compile problem. KDE & Mozilla plug-in
From: John Lange <lists () darkcore ! net>
Date: 2003-02-19 17:00:46
[Download RAW message or body]
The problem was solved by moving the krun.h include to the very top of
the list as you mentioned. I eventually discovered a note in one of the
qt header files that said something like "if you are getting an error at
compile time here.. conflicts with X11 libraries... move include above X
includes.. bla bla"
After doing that it now compiles.
Thanks.
John
On Tue, 2003-02-18 at 15:32, Waldo Bastian wrote:
> On Tuesday 18 February 2003 17:28, John Lange wrote:
> > /usr/lib/qt3/include/qnamespace.h:628: parse error before numeric
> > constant
> > -- end snip --
> >
> > It must be missing some kind of "DEFINE" or something?
>
> My guess is that one of the headers that gets included (either directly or
> indirectly) before krun.h defines whatever it is that is in your line 628 of
> qnamespace.h.
>
> Might be different in your case, but my qnamespace.h looks like this around
> line 628:
>
> enum PenStyle { // pen style
> NoPen,
> SolidLine,
> DashLine,
> DotLine,
> DashDotLine,
> DashDotDotLine,
> MPenStyle = 0x0f
> };
>
> If one of the header files previously included now has a define like:
> #define DotLine 10
>
> Then "DotLine" in the Qt code gets replaced with 10 by the preprocessor and
> the compiler will complain about a "numeric constant" that it doesn't expect
> there.
>
> The solution is either to change the order of the include files (e.g. move the
> krun.h include further up in the file) or to explicitly undefine DotLine
> before include krun.h
>
> The real solution is to fix these broken header files that have such braindead
> defines in them.
>
> Cheers,
> Waldo
--
John Lange <lists@darkcore.net>
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic