[Development] Compile fails after Q_DECLARE_SHARED(QDebug)
Thiago Macieira
thiago.macieira at intel.com
Tue Jul 17 15:11:56 CEST 2012
On terça-feira, 17 de julho de 2012 22.02.36, 이광웅 wrote:
> I saw the following logs when making.
>
> And I noticed that Q_DECLARE_SHARED(QDebug) is inserted on latest commit.
>
> What am I missing? Would you give me any advice?
> ../../../../include/QtCore/../../src/corelib/io/qdebug.h: In function
> ‘void qSwap(T&, T&) [with T = QDebug]’:
>
> ../../../../include/QtCore/../../src/corelib/io/qdebug.h:130:1: error:
> ‘class QDebug’ has no member named ‘data_ptr’
Q_DECLARE_SHARED is now:
Q_DECLARE_TYPEINFO(TYPE, Q_MOVABLE_TYPE); \
template <> inline void qSwap<TYPE>(TYPE &value1, TYPE &value2) \
{ value1.swap(value2); } \
Q_DECLARE_SHARED_STL(TYPE)
There's no data_ptr in this.
Can you check the status of your headers (the include dirs)? Looks like you
have an old set of QtCore headers that are being found.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
Intel Sweden AB - Registration Number: 556189-6027
Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- 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/20120717/4165fd45/attachment.sig>
More information about the Development
mailing list