Javier,
if you had added the path to xerces_2_8/include there would be a /I
".../xerces_2_8/include" option in the first command line; double check
that you added it in the correct place
Alberto
Javier Gálvez Guerrero wrote:
Sure, here it goes:
Registro de la generación (generation register)
Se inició Versión de compilación: proyecto: contents_manager,
configuración: Debug|Win32
Líneas de comandos (command line)
Creando archivo temporal "d:\Ser teleco
mola\IPTV\Aplicación\Desarrollo\dIPTV\contents_manager\Debug\RSP00000628204246032.rsp"
con contenido
[
/Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE"
/FD /EHa /MDd /Fo"Debug\\" /Fd"Debug\vc80.pdb" /W3 /c /Wp64 /Zi /clr
/TP ".\contents_manager.cpp"
]
Creando línea de comandos "cl.exe @"d:\Ser teleco
mola\IPTV\Aplicación\Desarrollo\dIPTV\contents_manager\Debug\RSP00000628204246032.rsp"
/nologo /errorReport:prompt"
Ventana Resultados (results window)
Compilando...
contents_manager.cpp
d:\ser teleco
mola\iptv\aplicación\desarrollo\diptv\contents_manager\contents_manager.h(3)
: fatal error C1083: No se puede abrir el archivo incluir:
'xercesc/dom/DOM.hpp': No such file or directory
Resultados (results)
El registro de generación se guardó en el "file://d:\Ser teleco
mola\IPTV\Aplicación\Desarrollo\dIPTV\contents_manager\Debug\BuildLog.htm"
contents_manager - 1 errores, 0 advertencias
Hope this helps,
Javi
2007/11/28, Alberto Massari <[EMAIL PROTECTED]>:
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