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 Rado Andras <ra...@freemail.hu> on 2002/03/13 21:40:55 UTC

Xerces-c 1.7 on Tru64 Unix

Hi,

Who could help me where i find xerces-c (1.7 or 1.6)
binaries for Compaq Tru64 Unix?

Thanx
A.Rado
arado@allround.net

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


Re: recurrent errors in overloading stream insertion operator

Posted by Don Mastrovito <dm...@marathontechnologies.com>.
Rhys,

I no longer have BCB5 installed, so I'm just guessing here.

If you ripped off most of the DOMPrint example, it contains an incorrect 
include statement at line 93 or so.  When you use the STL, you should 
include <string>, not <string.h>.  The latter is the old style definitions 
which *may* simply pull in the std::basic_string definitions, or it might 
perform some black magic first.  I think the standard says this behavior is 
implementation dependent.  Better to just use #include <string> and avoid 
possibly ambiguity.

You might want to post this question to 
borland.public.cppbuilder.language.  There are some pretty knowledgeable 
compiler types who frequent that news group and they know the standards and 
expected compiler behavior far better than I.

HTH,
Don

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


recurrent errors in overloading stream insertion operator

Posted by Rhys Black <pd...@yahoo.com>.
Hi everyone,

I just have a small but annoying C++ problem.  It has
to do with Xerces imported code, but I have
experienced it, before, so I kind of doubt that it is
a problem with the actual code.  If this is an
inappropriate question for this forum, please ignore.

When copying and pasting the following code from
DOMPrint.cpp (located from the middle to the end of
the source file, for reference):

/*star code snippet
//
---------------------------------------------------------------------------
//  ostream << DOM_Node
//
//  Stream out a DOM node, and, recursively, all of
its children. This
//  function is the heart of writing a DOM tree out as
XML source. Give it
//  a document node and it will do the whole thing.
//
---------------------------------------------------------------------------
/*## line 184 of my program is the next one...##*/
ostream& operator<<(ostream& target, DOM_Node&
toWrite)
{
    // Get the name and value out for convenience
    DOMString   nodeName = toWrite.getNodeName();
    DOMString   nodeValue = toWrite.getNodeValue();
    unsigned long lent = nodeValue.length();
// [continue copy and paste from this point in
DOMPrint.cpp until EOF -  the rest is omitted from
this email as it is contained in one of the samples]
*/ end code snippet

When inserting this code into completely
clean-compiling code, where there is already present a
document tree derived from the sample on how to build
and count a DOMtree, the following errors are thrown:

[C++ Error] testXML.cpp(184): E2108 Improper use of
typedef 'ostream'
[C++ Error] testXML.cpp(184): E2108 Improper use of
typedef 'ostream'
[C++ Error] testXML.cpp(184): E2451 Undefined symbol
'target'
[C++ Error] testXML.cpp(184): E2108 Improper use of
typedef 'DOM_Node'
[C++ Error] testXML.cpp(184): E2451 Undefined symbol
'toWrite'
[C++ Error] testXML.cpp(184): E2268 Call to undefined
function '<<'
[C++ Error] testXML.cpp(185): E2379 Statement missing
;

I have searched around and found a few instances of
new users coming up to this problem, or one similar to
it, but none where it explains it or its resolution. 
Any help or redirection would be appreciated.

Thanks!
~Rhys Black

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

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