首页| 论坛| 消息

标题:我装QT4.1.2装了一个晚上,老是报错,快晕了!
作者:ysh2004
日期:2006-04-27 03:53
内容:

我按照论坛上面的步骤,一步一步的装,大家帮忙看看,看我的安装步骤是否有误,我的是VC6:
第1步:安装论坛置顶贴里面的Dev-cpp。
第2步:安装论坛置顶贴里面的minGW。
第3步:释放QT4.1.2的安装文件到C:\QT\4.1.2
第4步:释放QT4的补丁到C:\QT\4.1.2
第5步:在DOS提示符下运行vcvars32.bat
第6步:在DOS提示符下运行NMAKE/?
第7步:在DOS提示符下运行installpatch411.bat
第8步:在DOS提示符下运行qconfigure.bat msvc -release -no-stl
第9步:在DOS提示符下运行NMAKE
第9步只运行了大概三四分钟后,就报错终止了,错误如下:
styles\qwindowsxpstyle.cpp(168) : error C2065: 'HTHEME' : undeclared identifier
styles\qwindowsxpstyle.cpp(168) : error C2146: syntax error : missing ')' before identifier 'hTheme'
styles\qwindowsxpstyle.cpp(168) : error C2165: 'left-side modifier' : cannot modify pointers to data
styles\qwindowsxpstyle.cpp(168) : error C2071: 'PtrGetThemePartSize' : illegal storage class
styles\qwindowsxpstyle.cpp(168) : error C2059: syntax error : ')'
styles\qwindowsxpstyle.cpp(169) : error C2059: syntax error : '__stdcall'
styles\qwindowsxpstyle.cpp(169) : error C2091: function returns function
styles\qwindowsxpstyle.cpp(169) : error C2378: 'HTHEME' : redefinition; symbol cannot be overloaded with a typedef
styles\qwindowsxpstyle.cpp(170) : error C2146: syntax error : missing ')' before identifier 'hTheme'
styles\qwindowsxpstyle.cpp(170) : error C2165: 'left-side modifier' : cannot modify pointers to data
styles\qwindowsxpstyle.cpp(170) : error C2071: 'PtrCloseThemeData' : illegal storage class
styles\qwindowsxpstyle.cpp(170) : error C2059: syntax error : ')'
styles\qwindowsxpstyle.cpp(171) : error C2146: syntax error : missing ')' before identifier 'hTheme'
styles\qwindowsxpstyle.cpp(171) : error C2165: 'left-side modifier' : cannot modify pointers to data
styles\qwindowsxpstyle.cpp(171) : error C2071: 'PtrDrawThemeBackground' : illegal storage class
styl ..


#1 [seraphliu 04-27 10:34]
在vc6.0下,我也安装失败,vc.net下就是ok,不晓得怎么回事?
#2 [guyansrg 04-27 12:01]
相应的系统环境设置好了吗?
比如INCLUDE变量里,又没有设置:C:\Program Files\Microsoft Visual Studio\VC98\Include
检查一下吧
#3 [ysh2004 04-27 14:45]
我全部都设好了,但还是出现同样的错误!
#4 [guyansrg 04-27 20:04]
能不能把qwindowsxpstyle.cpp的内容给我看一下
#5 [ysh2004 04-30 14:23]
我重装了一下系统,后来安装QT 4.1.2虽然成功,但老是有这样的提示,在运行nmake时都会出现:
LINK : warning LNK4199: /DELAYLOAD:comdlg32.dll ignored; no imports found from comdlg32.dll
LINK : warning LNK4199: /DELAYLOAD:oleaut32.dll ignored; no imports found from oleaut32.dll
LINK : warning LNK4199: /DELAYLOAD:winmm.dll ignored; no imports found from winmm.dll
LINK : warning LNK4199: /DELAYLOAD:ws2_32.dll ignored; no imports found from ws2_32.dll
LINK : warning LNK4199: /DELAYLOAD:winspool.dll ignored; no imports found from winspool.dll
各位大侠,这到底是什么原因?

<< 1 2 >> (1/2)

回复 发表
主题 版块