Javier,
can you post the error log? Or, even better, the BuildLog.htm that the IDE should have generated?

Alberto

Javier Gálvez Guerrero wrote:
Alberto,
David probably could not help me because I did not say which compiler I was
using.
Anyway, I have changed the support for CLR and this worked perfectly, but I
have the same problem although I have added the path as you said.

The fact is that I have added the path to .../xercesc_2_8_0/include (the
folder name xercesc_2_8_0 has been changed by myself). Then, these includes
should work, shouldn't them?

#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>

However, the same error is still appearing (No such file or directory). Am I
doing it properly?

Thanks again for your help and sorry for my insistence and ignorance.
Javi

2007/11/28, Alberto Massari <[EMAIL PROTECTED]>:
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




Reply via email to