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 Ma...@skf.com on 2001/04/19 17:01:53 UTC
Problem with using Xerces-c 1.4 together with strings.
Dear all.
If this is the wrong place to post this, I would appreciate if you could
point me in the right direction.
I would like to do something like this:
#include <string> // <-- offending part
// Include Xerces stuff
<snip>
DOMString dStr;
// set value of DOMString
string str = dStr.transcode();
<snip>
I use Microsoft VC 6.0 and get a whole lot of errors similar to this:
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\utility(81) : error C2146: syntax error : missing ';' before identifier 'iterator_category'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\utility(84) : see reference to class template instantiation 'std::iterator_traits<_It>'
being compiled
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\utility(81) : error C2838: illegal qualified name in member declaration
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\utility(84) : see reference to class template instantiation 'std::iterator_traits<_It>'
being compiled
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\utility(81) : error C2501: 'iterator_category' : missing storage-class or type specifiers
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\utility(84) : see reference to class template instantiation 'std::iterator_traits<_It>'
being compiled
Best Regards
Magnus Olofsson
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: Problem with using Xerces-c 1.4 together with strings.
Posted by Radovan CHYTRACEK <Ra...@cern.ch>.
Magnus.Olofsson@skf.com wrote:
>
> Dear all.
>
> If this is the wrong place to post this, I would appreciate if you could
> point me in the right direction.
>
> I would like to do something like this:
>
> #include <string> // <-- offending part
> // Include Xerces stuff
I have run to the similar problem. I solved it by putting all the Xerce-C
includes as first ones and then I included all the other headers. This
solved my problem.
Good luck
Radovan