[Qt-interest] Qt 4.6.1 build bug with Cocoa (example included)
Thiago Macieira
thiago at kde.org
Sat Feb 6 17:42:37 CET 2010
Em Sábado 6. Fevereiro 2010, às 17.24.11, Mike Brancato escreveu:
> >> The error I get is:
> >> /System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:50:
> >> error: expected unqualified-id before ?[? token
> >>
> >> Before that '[' is an array name called "slots" which is a bit too
> >> coincidental to me to not be a conflict with Qt. I remember reading
> >> that with signal/slot definitions, "public slots:" becomes "public :"
> >> when the compiler reads it, I think Qt is removing the name of this
> >> array, effectively making it look like "uintptr_t [3];" to the
> >> compiler.
> >
> > You can't call an array "slots" if you're using Qt.
>
> Just to be clear, by what you said, this is a conflict with Apple's AppKit
> and QuartzCore Frameworks.
>
> It would be nice if the regular expression that matches "slots" did not
> match on "slots\s+[" or "slots\s+;" to allow for variable definition like
> this one form Apple's Cocoa.
There is no regular expression.
It's just a #define in qobjectdefs.h.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100206/7326024c/attachment.bin
More information about the Qt-interest-old
mailing list