You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Jaran Nilsen <ja...@jaranweb.com> on 2004/05/01 16:35:35 UTC
Getting type cast error when compiling XSLException
Hi.
I am trying to make an application which downloads a HTML page, then
transforms it using Xalan. However when I try to compile my project (I have
followed the "Basic usage patten with the XalanTransformer C++ API" guide to
set up include directories / lib directories in VC++) I get the error
message:
c:\Libraries\xml-xalan\c\src\xalanc\PlatformSupport\XSLException.hpp(95):
error C2440: 'type cast' : cannot convert from 'wchar_t [13]' to
'xalanc_1_7::XalanDOMString'
Can anyone explain me what I have done wrong, or if there is something I
have overseen when setting up Xalan and Xerces?
Thanks!
Regards,
Jaran Nilsen
www.jaranweb.com <http://www.jaranweb.com/>
_____
avast! Antivirus <http://www.avast.com> : Outbound message clean.
Virus Database (VPS): 0418-6, 05/01/2004
Tested on: 5/1/2004 4:35:35 PM
avast! is copyright (c) 2000-2003 ALWIL Software.
RE: Getting type cast error when compiling XSLException
Posted by Jaran Nilsen <ja...@jaranweb.com>.
I am currently using 7.0. Thinking about upgrading to .Net 2003.
Thanks for the information; I will look at it shortly.
J.
-----Original Message-----
From: david_n_bertoni@us.ibm.com [mailto:david_n_bertoni@us.ibm.com]
Sent: Saturday, May 01, 2004 22:36
To: xalan-dev@xml.apache.org
Subject: Re: Getting type cast error when compiling XSLException
Hi,
It looks like you're compiling with Visual C++ 7.x. If that's the case,
you really should use our project files, so the compiler options are set
correctly.
The problem you're seeing is related to whether or not wchar_t is treated
as a distinct type or not. The standard says it is, but previous versons
of Visual C++ did not treat it that way, and Xerces-C is written to expect
that it is, so Xalan-C must do so as well. Look in the documentation for
information about the option "/Zc:wchar_t (wchar_t Is Native Type)" and
make sure you set the option "Treat wchar_t as Built-in Type" is set to
"No".
Dave
"Jaran Nilsen"
<jaran@jaranweb. To: "Xalan-Dev@Xml.
Apache. Org" <xa...@xml.apache.org>
com> cc: (bcc: David N
Bertoni/Cambridge/IBM)
Subject: Getting type cast
error when compiling XSLException
05/01/2004 07:35
AM
Please respond
to xalan-dev
Hi.
I am trying to make an application which downloads a HTML page, then
transforms it using Xalan. However when I try to compile my project (I have
followed the "Basic usage patten with the XalanTransformer C++ API" guide
to set up include directories / lib directories in VC++) I get the error
message:
c:\Libraries\xml-xalan\c\src\xalanc\PlatformSupport\XSLException.hpp(95):
error C2440: 'type cast' : cannot convert from 'wchar_t [13]' to
'xalanc_1_7::XalanDOMString'
Can anyone explain me what I have done wrong, or if there is something I
have overseen when setting up Xalan and Xerces?
Thanks!
Regards,
Jaran Nilsen
www.jaranweb.com
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0418-6, 05/01/2004
Tested on: 5/1/2004 4:35:35 PM
avast! is copyright (c) 2000-2003 ALWIL Software.
_____
avast! Antivirus <http://www.avast.com> : Outbound message clean.
Virus Database (VPS): 0418-7, 05/01/2004
Tested on: 5/2/2004 12:45:12 AM
avast! is copyright (c) 2000-2003 ALWIL Software.
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org
Re: Getting type cast error when compiling XSLException
Posted by da...@us.ibm.com.
Hi,
It looks like you're compiling with Visual C++ 7.x. If that's the case,
you really should use our project files, so the compiler options are set
correctly.
The problem you're seeing is related to whether or not wchar_t is treated
as a distinct type or not. The standard says it is, but previous versons
of Visual C++ did not treat it that way, and Xerces-C is written to expect
that it is, so Xalan-C must do so as well. Look in the documentation for
information about the option "/Zc:wchar_t (wchar_t Is Native Type)" and
make sure you set the option "Treat wchar_t as Built-in Type" is set to
"No".
Dave
"Jaran Nilsen"
<jaran@jaranweb. To: "Xalan-Dev@Xml. Apache. Org" <xa...@xml.apache.org>
com> cc: (bcc: David N Bertoni/Cambridge/IBM)
Subject: Getting type cast error when compiling XSLException
05/01/2004 07:35
AM
Please respond
to xalan-dev
Hi.
I am trying to make an application which downloads a HTML page, then
transforms it using Xalan. However when I try to compile my project (I have
followed the “Basic usage patten with the XalanTransformer C++ API” guide
to set up include directories / lib directories in VC++) I get the error
message:
c:\Libraries\xml-xalan\c\src\xalanc\PlatformSupport\XSLException.hpp(95):
error C2440: 'type cast' : cannot convert from 'wchar_t [13]' to
'xalanc_1_7::XalanDOMString'
Can anyone explain me what I have done wrong, or if there is something I
have overseen when setting up Xalan and Xerces?
Thanks!
Regards,
Jaran Nilsen
www.jaranweb.com
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0418-6, 05/01/2004
Tested on: 5/1/2004 4:35:35 PM
avast! is copyright (c) 2000-2003 ALWIL Software.