You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by "Tatireddy, Vinod " <TA...@coned.com> on 2006/04/06 16:20:43 UTC

"Op.hpp.. Token()" unable to recognize

> Iam getting below error when  compiling xercesc XML DOM parser with my
> C++ code. Seems Xercesc "Op.hpp"  has "Token" class  as a forward
> declaration but for some reasons "cxx compiler driver" couldn't able
> to recognize it, can you please shed some light.  
> 
> 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
> 

Re: "Op.hpp.. Token()" unable to recognize

Posted by Vitaly Prapirny <ma...@mebius.net>.
Tatireddy, Vinod wrote:
>> Iam getting below error when  compiling xercesc XML DOM parser with my
>> C++ code. Seems Xercesc "Op.hpp"  has "Token" class  as a forward
>> declaration but for some reasons "cxx compiler driver" couldn't able
>> to recognize it, can you please shed some light.  
Could you try to build samples ? If it builds without errors then
most likely the problem is in some other headers and you can try to 
reorder headers in your cpp file so that xerces headers appears first.

Good luck !
	Vitaly