Please refer to the following post from 2 weeks ago:
 
HYPERLINK
"http://mail-archives.apache.org/mod_mbox/xml-xalan-c-users/200709.mbox/
[EMAIL PROTECTED]"http://mail-archives
.apache.org/mod_mbox/xml-xalan-c-users/200709.mbox/%3c001301c7fc82$04798
[EMAIL PROTECTED]
 
“building xalanc using msvc++ 2005 express edition”
 
This should get you where you need to go.
 
Hans Smit
 
 
 
-----Original Message-----
From: Aphale, Awadhoot [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 04, 2007 4:41 PM
To: xalan-c-users@xml.apache.org
Subject: 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
 

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.488 / Virus Database: 269.14.0/1048 - Release Date:
10/3/2007 8:22 PM


No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.488 / Virus Database: 269.14.0/1048 - Release Date:
10/3/2007 8:22 PM
 

Reply via email to