[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: problem building kdesupport/soprano against Qt4.5
From:       "Michael Howell" <mhowell123 () gmail ! com>
Date:       2008-08-22 13:14:53
Message-ID: a2927be10808220614g50adcd48ib04eb2b675322e4 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


> That means the definition for QHash jumped above the definition of the
> qHash function. You have to put the function inside the Soprano namespace
> for this to work.
Or reference the namespace explicitly (a`la Soprano::qHash).

On Thu, Aug 21, 2008 at 11:44 PM, Thiago Macieira <thiago@kde.org> wrote:

> Brad Hards wrote:
> >Any ideas?
>
> Yes. We've seen that problem. It happens because:
>
>  * Soprano uses a namespace
>  * Soprano defined qHash(Soprano::Node) before qhash.h was defined
>  * qvariant.h has changed in 4.5, including qhash.h now
>
> That means the definition for QHash jumped above the definition of the
> qHash function. You have to put the function inside the Soprano namespace
> for this to work.
>
> According to our expert, this is the way the C++ name lookup rules say it
> should be.
>
> --
>   Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
>     PGP/GPG: 0x6EF45358; fingerprint:
>     E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
>
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> unsubscribe <<
>
>


-- 
Michael Howell
mhowell123@gmail.com

[Attachment #5 (text/html)]

<div dir="ltr">&gt; That means the definition for QHash jumped above the definition \
of the<br> &gt; qHash function. You have to put the function inside the Soprano \
namespace<br> &gt; for this to work.<br>Or reference the namespace explicitly (a`la \
Soprano::qHash).<br><br><div class="gmail_quote">On Thu, Aug 21, 2008 at 11:44 PM, \
Thiago Macieira <span dir="ltr">&lt;<a \
href="mailto:thiago@kde.org">thiago@kde.org</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;">Brad Hards wrote:<br> &gt;Any ideas?<br>
<br>
Yes. We&#39;ve seen that problem. It happens because:<br>
<br>
&nbsp;* Soprano uses a namespace<br>
&nbsp;* Soprano defined qHash(Soprano::Node) before qhash.h was defined<br>
&nbsp;* qvariant.h has changed in 4.5, including qhash.h now<br>
<br>
That means the definition for QHash jumped above the definition of the<br>
qHash function. You have to put the function inside the Soprano namespace<br>
for this to work.<br>
<br>
According to our expert, this is the way the C++ name lookup rules say it<br>
should be.<br>
<font color="#888888"><br>
--<br>
&nbsp; Thiago Macieira &nbsp;- &nbsp;thiago (AT) <a href="http://macieira.info" \
target="_blank">macieira.info</a> - thiago (AT) <a href="http://kde.org" \
target="_blank">kde.org</a><br> &nbsp; &nbsp; PGP/GPG: 0x6EF45358; fingerprint:<br>
&nbsp; &nbsp; E067 918B B660 DBD1 105C &nbsp;966C 33F5 F005 6EF4 5358<br>
</font><br><br>
&gt;&gt; Visit <a href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub" \
target="_blank">http://mail.kde.org/mailman/listinfo/kde-devel#unsub</a> to \
unsubscribe &lt;&lt;<br> <br></blockquote></div><br><br clear="all"><br>-- \
<br>Michael Howell<br><a \
href="mailto:mhowell123@gmail.com">mhowell123@gmail.com</a><br> </div>



>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic