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 Dave Jarvis <da...@joot.com> on 2004/06/28 09:09:51 UTC
Samples Don't Compile with G++
Hi,
I know that the documentation says if you use G++ you are on your own,
however after revisiting C++ (from a 6 year hiatus), I was hoping to
find some examples the compiled out of the box, when I slapped them into
a new file.
Some examples are missing a namespace declaration (which I had to do
some digging on the web site to find; yes I could have guessed, but
really, something like this should be documented in an obvious way).
And at least one example (again, on the site) declared the DOMDocument as:
DOMDocument dom = ...pointer referece...;
Which, of course, must be:
DOMDocument *dom = ...etc.
Further, I noticed some examples (on the web site at least) made
reference to XMLException, without including the appropriate header file.
I did not find documentation on the library name for linking (yes, I
know: ls -la /usr/local/lib/libx*). However, little technical details
like that should be documented somewhere.
Thanks for writing Xerces, folks. Now that I've got something to
compile (attached), it should be a lot more fun. ;-) Please feel free
to modify and display the full version of something that will compile on
the web site. It would also be nice to see how to compile the
application (for Linux systems using GNU C++, anyway):
g++ -lxerces-c test.cpp
Sincerely,
Dave Jarvis