Ovanes Markarian wrote:
Hello all,

I am trying to compile the xalan 1.10 release under Visual C++ 8.0 Express 
Edition. I was able to
successfully compile Xerces 2.7 samples, but fail with Xalan.

I did everything what was described in the building docs (registering 
XERCESROOT Env var, putting
include paths, lib path etc to the VC Directories).


The errors I get when compile AllInOne are following:

XalanFileUtility.cpp
e:\libraries\xalan-c-src_1_10_0\src\xalanc/PlatformSupport/DirectoryEnumerator.hpp(84)
 : error
C2440: 'return' : cannot convert from 'const wchar_t [260]' to 'const 
xalanc_1_10::XalanDOMChar *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, 
C-style cast or
function-style cast

This question has been answered many times. If you search the archives, you'll find the answer:

http://marc.theaimsgroup.com/?l=xalan-c-users&m=115868189908353&w=2

see the MS documentation for more details:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/vclrfZcwchar_t.asp

Note that you will far more luck using the current source code in the repository, rather than Xalan 1.10.

Dave

Reply via email to