Still got problems compiling....

Bob Tanner kde-cygwin@mail.kde.org
Fri, 15 Nov 2002 14:50:40 -0600


On Thursday 14 November 2002 08:00 pm, Bob Tanner wrote:
> It's like g++ doesn't support templates. The offending code:
>
> 61:template <class T1, class T2>
> 62:Q_INLINE_TEMPLATES bool operator=3D=3D( const QPair<T1, T2>& x, cons=
t
> QPair<T1, T2>& y )
> 63: {
> 64:    return x.first =3D=3D y.first && x.second =3D=3D y.second;
> 65:}

I'm really confused now. Q_INLINE_TEMPLATES is not defined in any file in=
side=20
of cygwin/qt-3 repository. BUT  Q_INLINE_TEMPLATES is used in qpair.h.

Looking on my linux box, in qt-3.0.4, the qpair.h file doesn't use=20
Q_INLINE_TEMPLATES, it uses just inline:

61:template <class T1, class T2>
62:inline bool operator=3D=3D( const QPair<T1, T2>& x, const QPair<T1, T2=
>& y )
63:{
64:    return x.first =3D=3D y.first && x.second =3D=3D y.second;
65:}

There are significant differences between linux/qpair.h and cygwin/qpair.=
h for=20
under qt-3.0.4.

So, I downloaded qt-3.0.5 for linux, and sure enough, in qpair.h:61
61: template <class T1, class T2>
62: Q_INLINE_TEMPLATES bool operator=3D=3D( const QPair<T1, T2>& x, const=
=20
QPair<T1, T2>& y )
63: {
64:    return x.first =3D=3D y.first && x.second =3D=3D y.second;
65: }

There are very few difference between linux/qt-3.0.5 and cgywin/qt-3 in t=
he=20
qpair.h file. Did the 3.0.5 qpair.h file sneak into qt-3, which I believe=
 is=20
3.0.4 based?


--=20
Bob Tanner <tanner@real-time.com>       | Phone : (952)943-8700
http://www.mn-linux.org                 | Fax   : (952)943-8500
Key fingerprint =3D 02E0 2734 A1A1 DBA1 0E15  623D 0036 7327 93D9 7DA3