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 Oliver Kurowski <ol...@gmx.de> on 2003/01/09 20:50:37 UTC
Using latest nightly build?
Hello everybody!
I loaded the latest nightly build to test the new pretty printer.
But I was not able to compile my project due to the error that DOMElement
and several other things aren't declared.
I learned that namespace support (the C++ namespaces!!) were added recently
and so I included in my header after including all DOM header files
"XERCES_CPP_NAMESPACE_USE". But now the compiler tells me that DOMDocument
(which was used right after DOMElement) was declared twice.
Any suggestions to get this to work? I'm using MS Visual Studio .NET.
Thanks for the help
Oliver Kurowski
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: Using latest nightly build?
Posted by Oliver Kurowski <ol...@gmx.de>.
Hello Tinny!
Thanks for your answer, that is the solution! IMHO the best way (at least
for me) is to change the MSXML.H. You have to comment out the following
lines:
#ifdef __cplusplus
typedef class DOMDocument DOMDocument;
#else
typedef struct DOMDocument DOMDocument;
#endif // __cplusplus
Of course that you won't be able to use MS XML but usually you use Xerces
instead ;)
Oliver
----- Original Message -----
From: "Tinny Ng" <tn...@ca.ibm.com>
To: <xe...@xml.apache.org>; "Oliver Kurowski"
<ol...@gmx.de>
Sent: Thursday, January 09, 2003 11:52 PM
Subject: Re: Using latest nightly build?
> Oliver,
>
> I think I encountered something like this before....
>
> I think the Msxml.h has typedef its own DOMDocument, and thus lead to this
> error. Try qualifier the use of DOMDocument in your application e.g.
>
> XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * fDoc;
>
> and see if it helps.
>
> Tinny
> ----- Original Message -----
> From: "Oliver Kurowski" <ol...@gmx.de>
> To: <xe...@xml.apache.org>
> Sent: Thursday, January 09, 2003 3:06 PM
> Subject: Re: Using latest nightly build?
>
>
> > Hi Dave!
> >
> > I examined my code and I found no forward declaration. Just my own class
> > declaration in the header.
> > I want to note that my code worked fine with Xerces 2.1.0
> >
> > Oliver
> >
> > ----- Original Message -----
> > From: "David N Bertoni/Cambridge/IBM" <da...@us.ibm.com>
> > To: <xe...@xml.apache.org>
> > Sent: Thursday, January 09, 2003 9:01 PM
> > Subject: Re: Using latest nightly build?
> >
> >
> > >
> > >
> > >
> > >
> > > Hi Oliver,
> > >
> > > Check your code to make sure you have no forward declarations of your
> own,
> > > for example:
> > >
> > > class DOMDocument;
> > >
> > > This will be a problem when you hoist everything in the Xerces
> namespace,
> > > because this forward declaration is not in the Xerces namespace.
> > >
> > > Dave
> > >
> > >
> > >
> > >
> > > "Oliver
> > > Kurowski" To:
> > <xe...@xml.apache.org>
> > > <oliver.kurowski cc: (bcc: David N
> > Bertoni/Cambridge/IBM)
> > > @gmx.de> Subject: Using latest
> > nightly build?
> > >
> > > 01/09/2003 11:50
> > > AM
> > > Please respond
> > > to xerces-c-dev
> > >
> > >
> > >
> > >
> > > Hello everybody!
> > >
> > > I loaded the latest nightly build to test the new pretty printer.
> > >
> > > But I was not able to compile my project due to the error that
> DOMElement
> > > and several other things aren't declared.
> > >
> > > I learned that namespace support (the C++ namespaces!!) were added
> > recently
> > > and so I included in my header after including all DOM header files
> > > "XERCES_CPP_NAMESPACE_USE". But now the compiler tells me that
> DOMDocument
> > > (which was used right after DOMElement) was declared twice.
> > >
> > > Any suggestions to get this to work? I'm using MS Visual Studio .NET.
> > >
> > > Thanks for the help
> > >
> > > Oliver Kurowski
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> > > For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> > > For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> > For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: Using latest nightly build?
Posted by Tinny Ng <tn...@ca.ibm.com>.
Oliver,
I think I encountered something like this before....
I think the Msxml.h has typedef its own DOMDocument, and thus lead to this
error. Try qualifier the use of DOMDocument in your application e.g.
XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * fDoc;
and see if it helps.
Tinny
----- Original Message -----
From: "Oliver Kurowski" <ol...@gmx.de>
To: <xe...@xml.apache.org>
Sent: Thursday, January 09, 2003 3:06 PM
Subject: Re: Using latest nightly build?
> Hi Dave!
>
> I examined my code and I found no forward declaration. Just my own class
> declaration in the header.
> I want to note that my code worked fine with Xerces 2.1.0
>
> Oliver
>
> ----- Original Message -----
> From: "David N Bertoni/Cambridge/IBM" <da...@us.ibm.com>
> To: <xe...@xml.apache.org>
> Sent: Thursday, January 09, 2003 9:01 PM
> Subject: Re: Using latest nightly build?
>
>
> >
> >
> >
> >
> > Hi Oliver,
> >
> > Check your code to make sure you have no forward declarations of your
own,
> > for example:
> >
> > class DOMDocument;
> >
> > This will be a problem when you hoist everything in the Xerces
namespace,
> > because this forward declaration is not in the Xerces namespace.
> >
> > Dave
> >
> >
> >
> >
> > "Oliver
> > Kurowski" To:
> <xe...@xml.apache.org>
> > <oliver.kurowski cc: (bcc: David N
> Bertoni/Cambridge/IBM)
> > @gmx.de> Subject: Using latest
> nightly build?
> >
> > 01/09/2003 11:50
> > AM
> > Please respond
> > to xerces-c-dev
> >
> >
> >
> >
> > Hello everybody!
> >
> > I loaded the latest nightly build to test the new pretty printer.
> >
> > But I was not able to compile my project due to the error that
DOMElement
> > and several other things aren't declared.
> >
> > I learned that namespace support (the C++ namespaces!!) were added
> recently
> > and so I included in my header after including all DOM header files
> > "XERCES_CPP_NAMESPACE_USE". But now the compiler tells me that
DOMDocument
> > (which was used right after DOMElement) was declared twice.
> >
> > Any suggestions to get this to work? I'm using MS Visual Studio .NET.
> >
> > Thanks for the help
> >
> > Oliver Kurowski
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> > For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> > For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: Using latest nightly build?
Posted by Oliver Kurowski <ol...@gmx.de>.
Hi Dave!
I examined my code and I found no forward declaration. Just my own class
declaration in the header.
I want to note that my code worked fine with Xerces 2.1.0
Oliver
----- Original Message -----
From: "David N Bertoni/Cambridge/IBM" <da...@us.ibm.com>
To: <xe...@xml.apache.org>
Sent: Thursday, January 09, 2003 9:01 PM
Subject: Re: Using latest nightly build?
>
>
>
>
> Hi Oliver,
>
> Check your code to make sure you have no forward declarations of your own,
> for example:
>
> class DOMDocument;
>
> This will be a problem when you hoist everything in the Xerces namespace,
> because this forward declaration is not in the Xerces namespace.
>
> Dave
>
>
>
>
> "Oliver
> Kurowski" To:
<xe...@xml.apache.org>
> <oliver.kurowski cc: (bcc: David N
Bertoni/Cambridge/IBM)
> @gmx.de> Subject: Using latest
nightly build?
>
> 01/09/2003 11:50
> AM
> Please respond
> to xerces-c-dev
>
>
>
>
> Hello everybody!
>
> I loaded the latest nightly build to test the new pretty printer.
>
> But I was not able to compile my project due to the error that DOMElement
> and several other things aren't declared.
>
> I learned that namespace support (the C++ namespaces!!) were added
recently
> and so I included in my header after including all DOM header files
> "XERCES_CPP_NAMESPACE_USE". But now the compiler tells me that DOMDocument
> (which was used right after DOMElement) was declared twice.
>
> Any suggestions to get this to work? I'm using MS Visual Studio .NET.
>
> Thanks for the help
>
> Oliver Kurowski
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: Using latest nightly build?
Posted by David N Bertoni/Cambridge/IBM <da...@us.ibm.com>.
Hi Oliver,
Check your code to make sure you have no forward declarations of your own,
for example:
class DOMDocument;
This will be a problem when you hoist everything in the Xerces namespace,
because this forward declaration is not in the Xerces namespace.
Dave
"Oliver
Kurowski" To: <xe...@xml.apache.org>
<oliver.kurowski cc: (bcc: David N Bertoni/Cambridge/IBM)
@gmx.de> Subject: Using latest nightly build?
01/09/2003 11:50
AM
Please respond
to xerces-c-dev
Hello everybody!
I loaded the latest nightly build to test the new pretty printer.
But I was not able to compile my project due to the error that DOMElement
and several other things aren't declared.
I learned that namespace support (the C++ namespaces!!) were added recently
and so I included in my header after including all DOM header files
"XERCES_CPP_NAMESPACE_USE". But now the compiler tells me that DOMDocument
(which was used right after DOMElement) was declared twice.
Any suggestions to get this to work? I'm using MS Visual Studio .NET.
Thanks for the help
Oliver Kurowski
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org