Javier,
the System namespace is part of the .NET framework, so you need to tell
the C++ compiler to generate managed code (Project | Properties |
General | Common Language Runtime support = /clr).
Alberto
Javier Gálvez Guerrero wrote:
I am using the Microsoft Visual C++ 2005 Express IDE. Then, must I change <>
by "" in ALL Xerces files?
Neither I can not understand why the compiler finds an error with the using
directive "using namespace System", because I need to use DateTime and
TimeSpan and these are supposed to be included in System, but when I try to
compile it fails.I don't know if this has anything to do with the previous
problem.
Thank you a lot for your answers,
Javi
2007/11/27, David Bertoni <[EMAIL PROTECTED]>:
Javier Gálvez Guerrero wrote:
Hi everyone,
When I try to compile a C++ class with its includes in the .h header
like
this:
#include <xercesc/dom/DOM.hpp>
#include <xercesc/dom/DOMImplementation.hpp>
#include <xercesc/dom/DOMImplementationLS.hpp>
#include <xercesc/dom/DOMWriter.hpp>
#include <xercesc/util/PlatformUtils.hpp>
The compiler fails saying there's no such file or directory. If I change
<>
for "" the compiling error dissapears for these included files, but
appear
for those included in them (for instance, DOMAttr.hpp). Actually, I
think
that something is going wrong because <> should not be changed, but I am
unable to guess what I am doing wrong. Obviously, the xerces folder is
where
it must be (so that the errors dissapear when <> are changed by "").
Can anybody help me, please?
Note that all files should be included using "" and not <>. Standard C++
reserves <> for system headers, and Xerces-C violates that.
This is likely happening because you built the binaries but did not build
an official distribution, or you have the include path messed up. Please
supply more information about your compiler and development environment.
Dave