[Development] Compile fails after Q_DECLARE_SHARED(QDebug)

Elvis Lee kwangwoong.lee at lge.com
Wed Jul 18 02:47:06 CEST 2012


Exactly, you're right. The old headers has been included.
I should separate other install prefixes from Qt.

Really, thanks.
Elvis.

--
Elvis Lee (이광웅)
Software Engineer @ LG Electronics Inc.
CTO Division / SW Platform Lab. / Advanced OS Tech Team.
Yang-jae dong 221, Seoul, Korea.

> -----Original Message-----
> From: development-bounces+kwangwoong.lee=lge.com at qt-project.org
> [mailto:development-bounces+kwangwoong.lee=lge.com at qt-project.org] On
> Behalf Of Thiago Macieira
> Sent: Tuesday, July 17, 2012 10:12 PM
> To: development at qt-project.org
> Subject: Re: [Development] Compile fails after Q_DECLARE_SHARED(QDebug)
> 
> 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




More information about the Development mailing list