[Development] Compile fails after Q_DECLARE_SHARED(QDebug)

Marc Mutz marc.mutz at kdab.com
Tue Jul 17 15:22:53 CEST 2012


On Tuesday July 17 2012, Thiago Macieira wrote:
> 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.

I wonder why it's this change in particular that keeps popping up on the ML...

-- 
Marc Mutz <marc.mutz at kdab.com> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-Independent Software Solutions



More information about the Development mailing list