You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by Dyuti Barma <dy...@gmail.com> on 2008/10/01 07:07:50 UTC
Upgrade to VC8 - Compile time errors
Hi,
I am using Visual Studio 2003 in a project which uses binaries of
Xerces 2.7 and Xalan 1.10.
I tried to upgrade to VC8 but, I am getting these errors:
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
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
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
I downloaded Xerces compiled using VC 8.0, but couldn't find Xalan
compiled with VC 8.0 anywhere. Does anyone know where I can get VC8
libs for Xalan (or even the source compatible with VC8) ?
Everything works fine when I use VC 7.1.
Any help would be appreciable.
Thanks,
Dyuti
Re: Xerces XPath vs Xalan
Posted by David Bertoni <db...@apache.org>.
Rob Conde wrote:
> Hi David (or anyone else with something to add),
> Checking out the xerces 3 release you mentioned, I now see that
> xerces has at least some XPath support. Can you explain how this relates
> to/differs from Xalan? Are the implementations redundant? Complimentary?
> Tradeoffs?
Are you referring to the support needed for XML Schema validation? If
so, then it's quite limited. There were also some updates for XQilla,
related to the DOM Level 3 XPath, which Xerces-C does not implement itself.
Xalan-C provides a full implementation of XPath 1.0, including the full
function library. Xerces-C itself does not implement any of the
function library.
If you're using the Xerces-C DOM, you might consider using XQilla if you
only need XPath. If you need XSLT and XPath, Xalan-C's source tree
implementation is far more compact than the Xerces-C DOM, because it's
not mutable.
If you need the mutabily of the Xerces-C DOM, you can use Xalan-C's
wrappers for it, but there are performance penalties. Also, there are
differences between the DOM data model and the XPath data model which
can lead to non-conforming behavior.
Dave
Xerces XPath vs Xalan
Posted by Rob Conde <Ro...@ai-solutions.com>.
Hi David (or anyone else with something to add),
Checking out the xerces 3 release you mentioned, I now see that xerces
has at least some XPath support. Can you explain how this relates to/differs
from Xalan? Are the implementations redundant? Complimentary? Tradeoffs?
Thanks,
Rob Conde
Re: Upgrade to VC8 - Compile time errors
Posted by David Bertoni <db...@apache.org>.
Dyuti Barma wrote:
> Hi,
>
> I am using Visual Studio 2003 in a project which uses binaries of Xerces 2.7 and Xalan 1.10.
> I tried to upgrade to VC8 but, I am getting these errors:
>
> 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
> 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
> 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
>
> I downloaded Xerces compiled using VC 8.0, but couldn't find Xalan compiled with VC 8.0 anywhere. Does anyone know where I can get VC8 libs for Xalan (or even the source compatible with VC8) ?
The trunk of the Subversion repository contains source which will build
with VC8 and VC9. If you must use Xalan-C 1.10, you can search the
archives of this mailing list for more information about how to modify
1.10 to make it work.
Note also that Xerces-C 3.0 was just released, so you might want to
upgrade from 2.7 to 3.0.
Dave