[Qt-interest] Qt 4.6.1 build bug with Cocoa (example included)
Mike Brancato
mike at mikebrancato.com
Sat Feb 6 17:24:11 CET 2010
>> 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.
Thanks for the clarification.
>
> --
> 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
--
Mike Brancato
More information about the Qt-interest-old
mailing list