Hello, yesterday i tried to build our application with Qt 4.6.0-rc1 on Windows XP, MSVC 2008. All works well, but the compilation of Qwt 5.2(http://qwt.sourceforge.net/) which we are using. It was complaining about 'qHash' : ambiguous call to overloaded function, details see below.
After a bit googling i found the following thread in QtCentre: http://www.qtcentre.org/forum/f-qwt-23/t-qwt-build-error-with-qt-460-tp1-24037.html which suggests that this is a well known Qt problem which was solved already for previous 4.x release. Is this a problem in Qt 4.6.0-rc1 ? Best regards Kai qwt_thermo.cpp c:\qt\4.6.0-rc1\include\qtcore\../../src/corelib/tools/qhash.h(875) : error C2668: 'qHash' : ambiguous call to overloaded function c:\qt\4.6.0-rc1\include\qtcore\../../src/corelib/tools/qhash.h(86): could be 'uint qHash(qint64)' c:\qt\4.6.0-rc1\include\qtcore\../../src/corelib/tools/qhash.h(78): or 'uint qHash(quint64)' c:\qt\4.6.0-rc1\include\qtcore\../../src/corelib/tools/qhash.h(77): or 'uint qHash(long)' c:\qt\4.6.0-rc1\include\qtcore\../../src/corelib/tools/qhash.h(69): or 'uint qHash(ulong)' c:\qt\4.6.0-rc1\include\qtcore\../../src/corelib/tools/qhash.h(68): or 'uint qHash(int)' c:\qt\4.6.0-rc1\include\qtcore\../../src/corelib/tools/qhash.h(67): or 'uint qHash(uint)' c:\qt\4.6.0-rc1\include\qtcore\../../src/corelib/tools/qhash.h(66): or 'uint qHash(short)' c:\qt\4.6.0-rc1\include\qtcore\../../src/corelib/tools/qhash.h(65): or 'uint qHash(ushort)' c:\qt\4.6.0-rc1\include\qtcore\../../src/corelib/tools/qhash.h(64): or 'uint qHash(signed char)' c:\qt\4.6.0-rc1\include\qtcore\../../src/corelib/tools/qhash.h(63): or 'uint qHash(uchar)' c:\qt\4.6.0-rc1\include\qtcore\../../src/corelib/tools/qhash.h(62): or 'uint qHash(char)' while trying to match the argument list '(const qreal)' c:\qt\4.6.0-rc1\include\qtcore\../../src/corelib/tools/qhash.h(873) : while compiling class template member function 'QHashNode<Key,T> **QHash<Key,T>::findNode(const Key &,uint *) const' with [ Key=qreal, T=QHashDummyValue ] c:\qt\4.6.0-rc1\include\qtcore\../../src/corelib/tools/qhash.h(748) : while compiling class template member function 'QHash<Key,T>::iterator QHash<Key,T>::insert(const Key &,const T &)' with [ Key=qreal, T=QHashDummyValue ] c:\qt\4.6.0-rc1\include\qtcore\../../src/corelib/tools/qset.h(233) : see reference to class template instantiation 'QHash<Key,T>' being compiled _______________________________________________ Qt4-preview-feedback mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback
