Martin,
Yes, it is an error from XERCESC include files. Below is my class
hierarchy and distribution of classes among files. The error iam
getting is in ExampleInterfaceCont.C which has pointer to
ExampleInterface that has DOM parsing code. Iam not sure why the error
on XERCESC include files, anything with order of source file compilation
OR order of XERCES header files or change in compiler flags?
1)File :- ExampleInterface.C
Class ExampleInterface {
Static Void InitializeParsing() {
XMLPlatformUtils::Initialize();
parser=new XercesDOMParser;
parser->setValidationScheme( XercesDOMParser::Val_Never );
parser->setDoNamespaces( false );
parser->setDoSchema( false );
parser->setLoadExternalDTD( false );
parser->setIncludeIgnorableWhitespace(false);
}
// member functions to handle XML nodes goes here...
}
2)File :- X.C
Class X : public ExampleInterfcae {
...
}
Class Y: public ExampleInterfcae {
...
}
3)File :-ExampleInterfaceCont.C
Class ExampleInterfaceCont {
X* DOMparsing
}
Main()
{
ExampleInterface::InitializeParsing
ExampleInterface*[3]=&x()
ExampleInterfaceCont Cont=new StarInterfaceCont();
.........
}
Thanks
Vinod
-----Original Message-----
From: Martin Sebor [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 06, 2006 5:21 AM
To: [email protected]
Subject: Re: overloaded function "Token" is not a type name
Tatireddy, Vinod wrote:
> Iam getting below error when compiling xercesc XML parser with my C++
code. I opened the xercesc Op.hpp and has Token class as forward
declaration but for some reasons "cxx compiler driver" couldn't able to
recognize it, can you please shed some light.
I'm not sure how your question relates to the subject of this list
(discussion of the development, maintenance, and porting of the Apache
C++ Standard Library). It looks to me like the error you are getting
comes from the XML parser code.
Martin
>
> Compiler:- Compaq C++ V6.5-014 for Compaq Tru64 UNIX V5.1B (Rev. 2650)
> Machine:- OSF1 V5.1 2650 alpha
>
> snippet of error log..
> cxx: Error: /opt/oms/include/xercesc/util/regx/Op.hpp, line 124: #757
> overloaded function "Token" is not a type name
(symnottypname)
> virtual const Token* getToken() const; ------------------^
> cxx: Error: /opt/oms/include/xercesc/util/regx/Op.hpp, line 279: #757
> overloaded function "Token" is not a type name
(symnottypname)
> RangeOp(const short type, const Token* const token,
> MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);
> ----------------------------------------^
>
>
> Thanks in advance
> Vinod