stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tatireddy, Vinod " <>
Subject RE: Error with Xeresc header file with Compaq C++
Date Thu, 06 Apr 2006 13:15:03 GMT
  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() {
         parser=new XercesDOMParser;
         parser->setValidationScheme( XercesDOMParser::Val_Never );
        parser->setDoNamespaces( false );
        parser->setDoSchema( false );
       parser->setLoadExternalDTD( 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

   ExampleInterfaceCont Cont=new StarInterfaceCont();


-----Original Message-----
From: Martin Sebor [] 
Sent: Thursday, April 06, 2006 5:21 AM
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.


> 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
>     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
>         RangeOp(const short type, const Token* const token, 
> MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);
> ----------------------------------------^
> Thanks in advance
> Vinod

View raw message