Qt4-preview-feedback Archive, January 2008
webkit compile error with wchar_t as builtin type
Message 1 in thread
I'm having a compile-error with Qt 4.4 on Windows XP with MSVC 2005. For compatibility with our other libraries, I have "Treat wchar_t as builtin type" set to true. This adds the flag "-Zc:wchar_t" to the compile-string (instead of "-Zc:wchar_t-").
The command-line while compiling was
--snip-
cl -c -nologo -Zm200 -Zc:wchar_t -Zi -MDd -GR -EHsc -DQT_SHARED -DQT_THR
EAD_SUPPORT -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_EDITION=QT_EDITION_DES
KTOP -DBUILDING_QT__=1 -DUSE_SYSTEM_MALLOC -DNDEBUG -DQT_MAKEDLL -DQT_NO_CAST_TO
_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_44_API_QSQLQUERY_FINISH -DQT_MOC_COMPAT -D_
USE_MATH_DEFINES -DBUILD_WEBKIT -DENABLE_ICONDATABASE=0 -DENABLE_XPATH=1 -DENABL
E_SVG=1 -DWTF_CHANGES=1 -DBUILDING_QT__ -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DQT
_DLL -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I"..\..\..\..\include\QtCore"
-I"..\..\..\..\include\QtCore" -I"..\..\..\..\include\QtNetwork" -I"..\..\..\..\
include\QtNetwork" -I"..\..\..\..\include\QtGui" -I"..\..\..\..\include\QtGui" -
I"..\..\..\..\include" -I"..\WebKit\qt\Api" -I"..\JavaScriptCore" -I"..\JavaScri
ptCore\kjs" -I"..\JavaScriptCore\bindings" -I"..\JavaScriptCore\bindings\c" -I".
.\JavaScriptCore\wtf" -I"..\JavaScriptCore\ForwardingHeaders" -I"." -I"Forwardin
gHeaders" -I"platform" -I"platform\network" -I"platform\graphics" -I"loader" -I"
page" -I"css" -I"dom" -I"bridge" -I"editing" -I"rendering" -I"history" -I"xml" -
I"html" -I"..\..\..\..\include\QtWebKit" -I"tmp" -I"generated" -I"tmp" -I"..\Jav
aScriptCore" -I"..\JavaScriptCore\kjs" -I"..\JavaScriptCore\bindings" -I"..\Java
ScriptCore\bindings\c" -I"..\JavaScriptCore\wtf" -I"..\JavaScriptCore\bindings\q
t" -I"..\JavaScriptCore\os-win32" -I"..\JavaScriptCore\pcre" -I"c:\Qt\4.4.0-tp1\
src\3rdparty\webkit\WebKitBuild\Debug\JavaScriptCore\kjs\tmp" -I"platform\qt" -I
"platform\network\qt" -I"platform\graphics\qt" -I"platform\graphics\svg\qt" -I"l
oader\qt" -I"page\qt" -I"..\WebKit\qt\WebCoreSupport" -I"..\WebKit\qt\Api" -I"."
-I"ForwardingHeaders" -I"..\..\webkit" -I"..\JavaScriptCore\kjs" -I"..\JavaScri
ptCore\bindings" -I"platform" -I"platform\network" -I"platform\graphics" -I"plat
form\graphics\svg" -I"platform\graphics\svg\filters" -I"loader" -I"loader\icon"
-I"css" -I"dom" -I"page" -I"bridge" -I"editing" -I"rendering" -I"history" -I"xml
" -I"html" -I"bindings\js" -I"ksvg2" -I"ksvg2\css" -I"ksvg2\svg" -I"ksvg2\misc"
-I"ksvg2\events" -I"platform\image-decoders" -I"..\..\..\..\include\ActiveQt" -I
"tmp\moc\debug_shared" -I"." -I"..\..\..\..\mkspecs\win32-msvc2005" -Fotmp\obj\d
ebug_shared\function.obj ..\JavaScriptCore\kjs\function.cpp
--snip--
And the error I received was
--snip-
c:\qt\4.4.0-tp1\src\3rdparty\webkit\javascriptcore\wtf\unicode\qt4/UnicodeQt4.h(
303) : error C2668: 'QChar::toCaseFolded' : ambiguous call to overloaded functio
n
c:\qt\4.4.0-tp1\include\qtcore\../../src/corelib/tools/qchar.h(303): cou
ld be 'ushort QChar::toCaseFolded(ushort)'
c:\qt\4.4.0-tp1\include\qtcore\../../src/corelib/tools/qchar.h(302): or
'uint QChar::toCaseFolded(uint)'
while trying to match the argument list '(UChar)'
c:\qt\4.4.0-tp1\src\3rdparty\webkit\javascriptcore\wtf\unicode\qt4/UnicodeQt4.h(
375) : error C2668: 'QChar::toCaseFolded' : ambiguous call to overloaded functio
n
c:\qt\4.4.0-tp1\include\qtcore\../../src/corelib/tools/qchar.h(303): cou
ld be 'ushort QChar::toCaseFolded(ushort)'
c:\qt\4.4.0-tp1\include\qtcore\../../src/corelib/tools/qchar.h(302): or
'uint QChar::toCaseFolded(uint)'
while trying to match the argument list '(const UChar)'
c:\qt\4.4.0-tp1\src\3rdparty\webkit\javascriptcore\wtf\unicode\qt4/UnicodeQt4.h(
376) : error C2668: 'QChar::toCaseFolded' : ambiguous call to overloaded functio
n
c:\qt\4.4.0-tp1\include\qtcore\../../src/corelib/tools/qchar.h(303): cou
ld be 'ushort QChar::toCaseFolded(ushort)'
c:\qt\4.4.0-tp1\include\qtcore\../../src/corelib/tools/qchar.h(302): or
'uint QChar::toCaseFolded(uint)'
while trying to match the argument list '(const UChar)'
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\n
make.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
--snip-
Thanks
-Courtland