Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 4

Qt-interest Archive, February 2007
error C2244: 'QMultiHash<Key,T>::replace'


Message 1 in thread

Hi all,

I have been using Qt 4.1.4 with Visual Studio 2005 Professional on windows
XP Pro X64 for past many months now. Today I updated my system with
Microsoft .Net 3.0  and since then all my codes have stopped compiling
properly. I get the following error repeatedly for 12-13 times on the codes
that were working perfectly fine yesterday.I tried uninstalling .Net 3.0 but
am still getting the errors.

The errors are:
--------
c:\qt\4.1.4\qt-
win-opensource-src-4.1.4\include\qtcore\../../src/corelib/tools/qhash.h(807)
: error C2244: 'QMultiHash<Key,T>::replace' : unable to match function
definition to an existing declaration
1>        c:\qt\4.1.4\qt-
win-opensource-src-4.1.4\include\qtcore\../../src/corelib/tools/qhash.h(792)
: see declaration of 'QMultiHash<Key,T>::replace'
1>        definition
1>        'QHash<Key,T>::iterator QMultiHash<Key,T>::replace(const Key
&,const T &)'
1>        existing declarations
1>        'QHash<Key,T>::iterator QMultiHash<Key,T>::replace(const Key
&,const T &)'
--------

Can anyone please help me figure out what's going wrong here and how to fix
this?

Thanks in advance.
Ashish

Message 2 in thread

This is a known issue introduced by a bug in the SP1 for Visual C++ 2005 
(which I assume is installed when updating to .NET 3.0), and documented in 
the compiler notes and knowledge base on Trolltech's homepage:

http://www.trolltech.com/developer/notes/compilers/vcpp
http://www.trolltech.com/developer/knowledgebase/faq.2006-12-18.3281869860
http://support.microsoft.com/kb/930198

Either uninstall SP1, or request the hotfix from Microsoft.


Volker

"Ashish Singh" <mrasingh@xxxxxxxxx> wrote in message 
news:e275438e0702141606j38d244ecmed08deeea0192cb6@xxxxxxxxxxxxxxxxx
> Hi all,
>
> I have been using Qt 4.1.4 with Visual Studio 2005 Professional on 
> windows
> XP Pro X64 for past many months now. Today I updated my system with
> Microsoft .Net 3.0  and since then all my codes have stopped compiling
> properly. I get the following error repeatedly for 12-13 times on the 
> codes
> that were working perfectly fine yesterday.I tried uninstalling .Net 3.0 
> but
> am still getting the errors.
>
> The errors are:
> --------
> c:\qt\4.1.4\qt-
> win-opensource-src-4.1.4\include\qtcore\../../src/corelib/tools/qhash.h(807)
> : error C2244: 'QMultiHash<Key,T>::replace' : unable to match function
> definition to an existing declaration
> 1>        c:\qt\4.1.4\qt-
> win-opensource-src-4.1.4\include\qtcore\../../src/corelib/tools/qhash.h(792)
> : see declaration of 'QMultiHash<Key,T>::replace'
> 1>        definition
> 1>        'QHash<Key,T>::iterator QMultiHash<Key,T>::replace(const Key
> &,const T &)'
> 1>        existing declarations
> 1>        'QHash<Key,T>::iterator QMultiHash<Key,T>::replace(const Key
> &,const T &)'
> --------
>
> Can anyone please help me figure out what's going wrong here and how to 
> fix
> this?
>
> Thanks in advance.
> Ashish
> 


--
 [ signature omitted ]