You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Aphale, Awadhoot" <Aw...@ca.com> on 2007/10/04 09:37:19 UTC

Xerces 2.7 - Xalan 1.10 in VC 2005 query

Hi,

 

I am trying to use Xerces 2.7 & Xalan 1.10 in VC 2005. When I tried to
build, I got errors like following,

 

C:\xalan-c-1.10.0-WithOutICU\win\include\xalanc/DOMSupport/DOMServices.h
pp(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

C:\xalan-c-1.10.0-WithOutICU\win\include\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

C:\xalan-c-1.10.0-WithOutICU\win\include\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

XMLGEN.cpp

C:\xalan-c-1.10.0-WithOutICU\win\include\xalanc/DOMSupport/DOMServices.h
pp(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

C:\xalan-c-1.10.0-WithOutICU\win\include\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

C:\xalan-c-1.10.0-WithOutICU\win\include\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

XmlDoc.cpp

C:\xalan-c-1.10.0-WithOutICU\win\include\xalanc/DOMSupport/DOMServices.h
pp(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

C:\xalan-c-1.10.0-WithOutICU\win\include\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

C:\xalan-c-1.10.0-WithOutICU\win\include\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

XMLContent.cpp

C:\xalan-c-1.10.0-WithOutICU\win\include\xalanc/DOMSupport/DOMServices.h
pp(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

C:\xalan-c-1.10.0-WithOutICU\win\include\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

C:\xalan-c-1.10.0-WithOutICU\win\include\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

 

Then. I downloaded Xerces 2.7 from Apache & compiled in VC 2005. But
when I tried to compile Xalan 1.10 in VC 2005, it gave another set of
errors like following,

 

XalanFileUtility.cpp

c:\My Documents\CA-ARDS 2.3\XML Exchange\Libraries\Xalan-C_current-src
(Before porting from 2k3 to
2k5)\xml-xalan\c\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

c:\My Documents\CA-ARDS 2.3\XML Exchange\Libraries\Xalan-C_current-src
(Before porting from 2k3 to
2k5)\xml-xalan\c\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

c:\My Documents\CA-ARDS 2.3\XML Exchange\Libraries\Xalan-C_current-src
(Before porting from 2k3 to
2k5)\xml-xalan\c\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

c:\My Documents\CA-ARDS 2.3\XML Exchange\Libraries\Xalan-C_current-src
(Before porting from 2k3 to
2k5)\xml-xalan\c\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

c:\My Documents\CA-ARDS 2.3\XML Exchange\Libraries\Xalan-C_current-src
(Before porting from 2k3 to
2k5)\xml-xalan\c\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

 

There are more then 650 errors.

I am not getting how to overcome this problem. Any help would be
appreciable. 

 

 

Thanks,

Awadhoot


Re: Xerces 2.7 - Xalan 1.10 in VC 2005 query

Posted by Boris Kolpackov <bo...@codesynthesis.com>.
Hi Awadhoot,

Aphale, Awadhoot <Aw...@ca.com> writes:

> I am trying to use Xerces 2.7 & Xalan 1.10 in VC 2005. When I tried to
> build, I got errors like following,

Since the errors you cite are in the Xalan source code, perhaps you
should ask for help on the Xalan mailing lists.

Boris

-- 
Boris Kolpackov
Code Synthesis Tools CC
http://www.codesynthesis.com
Open-Source, Cross-Platform C++ XML Data Binding

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org