Hi Christian,
Xerces 2.4 was not tested against Visual Studio 2005; you should upgrade to a newer version (possibly the latest one, Xerces 2.7). If you are unable to do so, try to identify the new code for the code that fails to compile and backport it.

Hope this helps,
Alberto

At 10:05 AM 6/8/2006 +0200, Christian Wilmes wrote:
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

--


Echte DSL-Flatrate dauerhaft für 0,- Euro*!
"Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl

Reply via email to