[Gdal-dev] Compiling Xerces with VS 2005
Christian Wilmes
C.Wilmes at gmx.de
Wed Jun 7 12:53:28 EDT 2006
Hi All,
I'm trying to compile the Xerces library with Visual Studio 2005. There seems to be a problem with wchar_t. I get errors like that one:
Error 20 error C2664: 'mbstowcs' : cannot convert parameter 1 from 'XMLCh *' to 'wchar_t *' c:\ms4wCompiling\Projects\gdal-1.3.2\xerces-c-src2_4_0\src\xercesc\util\Transcoders\Win32\Win32TransService.cpp 177
I already try to do the following:
In the file xerces-c-src2_4_0\src\xercesc\util\compilers\vcppdefs.hpp in line 178:
old: typedef unsigned short XMLCh;
new: typedef wchar_t XMLCh;
But seems to be not the right ist causes other errors, for example that one:
Error 9 error C2679: binary '>>' : no operator found which takes a right-hand operand of type 'unsigned short' (or there is no acceptable conversion) c:\ms4wCompiling\Projects\gdal-1.3.2\xerces-c-src2_4_0\src\xercesc\validators\schema\identity\XercesXPath.cpp 293
Has anybody an idea what's to do?
Best Regards
Christian
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
More information about the Gdal-dev
mailing list