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
e:\libraries\xalan-c-src_1_10_0\src\xalanc/DOMSupport/DOMServices.hpp(571) :
error C2664: 'void
(const XMLCh *const ,const unsigned int)' : cannot convert parameter 1 from
'const
xalanc_1_10::XalanDOMChar *' to 'const XMLCh *const '
Types pointed to are unrelated; conversion requires reinterpret_cast,
C-style cast or
function-style cast
e:\libraries\xalan-c-src_1_10_0\src\xalanc/XPath/XObject.hpp(339) : error
C2664: 'void (const
XMLCh *const ,const unsigned int)' : cannot convert parameter 1 from 'const
xalanc_1_10::XalanDOMChar *' to 'const XMLCh *const '
Types pointed to are unrelated; conversion requires reinterpret_cast,
C-style cast or
function-style cast
e:\libraries\xalan-c-src_1_10_0\src\xalanc/XPath/XObject.hpp(343) : error
C2664: 'void (const
XMLCh *const ,const unsigned int)' : cannot convert parameter 1 from 'const
xalanc_1_10::XalanDOMChar *' to 'const XMLCh *const '
Types pointed to are unrelated; conversion requires reinterpret_cast,
C-style cast or
function-style cast
e:\libraries\xalan-c-src_1_10_0\src\xalanc/PlatformSupport/URISupport.hpp(110)
: error C2664:
'void xercesc_2_7::XMLURL::setURL(const XMLCh *const )' : cannot convert
parameter 1 from 'const
xalanc_1_10::XalanDOMChar *' to 'const XMLCh *const '
Types pointed to are unrelated; conversion requires reinterpret_cast,
C-style cast or
function-style cast
..\..\..\..\src\xalanc\Harness\XalanFileUtility.cpp(443) : error C2664:
'xalanc_1_10::XalanDOMString::XalanDOMString(const char
*,xalanc_1_10::MemoryManagerType
&,xalanc_1_10::XalanDOMString::size_type)' : cannot convert parameter 1 from
'const wchar_t [6]'
to 'const char *'
Types pointed to are unrelated; conversion requires reinterpret_cast,
C-style cast or
function-style cast
..\..\..\..\src\xalanc\Harness\XalanFileUtility.cpp(489) : error C2664:
'xalanc_1_10::XalanDOMString::XalanDOMString(const char
*,xalanc_1_10::MemoryManagerType
&,xalanc_1_10::XalanDOMString::size_type)' : cannot convert parameter 1 from
'const wchar_t [2]'
to 'const char *'
Types pointed to are unrelated; conversion requires reinterpret_cast,
C-style cast or
function-style cast
And so on more then 358 errors. When so many errors occure, it means that I
forgot smth. simple or
use the wrong release version.
With Kind Regards,
Ovanes Markarian
Many Thanks,
Ovanes.