[Development] 8b7a8efe6 broke the dev branch

Thiago Macieira thiago.macieira at intel.com
Sat Sep 7 17:53:05 CEST 2013


On sábado, 7 de setembro de 2013 17:25:56, Mark wrote:
> While trying to update my Qt build i got this nasty unexpected error:
> http://paste.kde.org/p7c51188c/
> 
> Or rather, two other folks from #kde-devel had that. While i recompiled i
> was welcomed by the same error.

Not a bug in Qt.

Look at the error message you're getting:

qjsonvalue.h:70:9: error: expected identifier before ‘int’
         Bool = 0x1,
         ^

Why is it talking about "int" and pointing to "Bool"?

Answer: you #included <X11/xlib.h> and forgot to clean it up. It has a #define 
Bool.

Since you're developing KDE software, this applies to you:
 always include X11/xlib.h as late as possible
 always include fixx11h.h after it
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130907/8bfffe3d/attachment.sig>


More information about the Development mailing list