标题:安装QWT时nmake错误,要如何解决?
作者:aichibanli
日期:2010-01-20 17:12
内容:
NMAKE : fatal error U1077: '"D:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"D:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
我在编译QWT时,出现错误,说是要改环境变量,我还是不清楚,能否给个详细说明,谢谢了~~
#1 [dbzhang800 01-20 17:53]
贴的信息没多大用,从此处往上看,找到编译错误信息,贴出来看看
#2 [aichibanli 01-20 18:05]
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qhash.h(875) : error C2668: '
qHash' : ambiguous call to overloaded function
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qhash.h(86): could be
'uint qHash(qint64)'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qhash.h(78): or
'uint qHash(quint64)'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qhash.h(77): or
'uint qHash(long)'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qhash.h(69): or
'uint qHash(ulong)'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qhash.h(68): or
'uint qHash(int)'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qhash.h(67): or
'uint qHash(uint)'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qhash.h(66): or
'uint qHash(short)'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qhash.h(65): or
'uint qHash(ushort)'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qhash.h(64): or
'uint qHash(signed char)'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qhash.h(63): or
'uint qHash(uchar)'
c:\qt\4.6.0\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\include\qtcore\../../src/corelib/tools/qhash.h(873) : while
compiling class template member funct ..
#3 [dbzhang800 01-20 20:32]
打开 qwt_valuelist.h
注意下面的代码,
...
#if QT_VERSION < 0x040300
// Some compilers have problems,
// without a qHash(double) implementation
#include
#include
inline uint qHash(double key) { return uint(key); }
#endif
...
#4 [aichibanli 01-20 22:06]
什么意思?要改吗?
#5 [dbzhang800 01-21 08:54]
对,你前面的错误不就是找不到这个重载函数么