Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 84581 invoked from network); 6 Apr 2006 13:15:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Apr 2006 13:15:35 -0000 Received: (qmail 44516 invoked by uid 500); 6 Apr 2006 13:15:27 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 44497 invoked by uid 500); 6 Apr 2006 13:15:27 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 44484 invoked by uid 99); 6 Apr 2006 13:15:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Apr 2006 06:15:26 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [158.57.45.61] (HELO [158.57.45.61]) (158.57.45.61) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Apr 2006 06:15:25 -0700 Received: from q050exg2.coned.com by [158.57.45.61] via smtpd (for asf.osuosl.org [140.211.166.49]) with ESMTP; Thu, 6 Apr 2006 09:15:04 -0400 Received: from m020ex41.conedison.net ([158.57.159.29]) by q050exg2.conedison.net with Microsoft SMTPSVC(5.0.2195.6872); Thu, 6 Apr 2006 09:15:04 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Error with Xeresc header file with Compaq C++ Date: Thu, 6 Apr 2006 09:15:03 -0400 Message-ID: <0741D1F3E19C0A4D9638C5FC23CC2D9010FA321C@m020ex41.conedison.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Error with Xeresc header file with Compaq C++ Thread-Index: AcZZW5VoBDjjnp2gRQGJLbXO+LbGugAHB6ug From: "Tatireddy, Vinod " To: , X-OriginalArrivalTime: 06 Apr 2006 13:15:04.0031 (UTC) FILETIME=[1DF8F6F0:01C6597C] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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? =20 1)File :- ExampleInterface.C Class ExampleInterface { Static Void InitializeParsing() { XMLPlatformUtils::Initialize(); parser=3Dnew 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 { ... } =20 Class Y: public ExampleInterfcae { ... }=20 3)File :-ExampleInterfaceCont.C Class ExampleInterfaceCont { X* DOMparsing } Main() {=20 ExampleInterface::InitializeParsing =20 ExampleInterface*[3]=3D&x() ExampleInterfaceCont Cont=3Dnew StarInterfaceCont(); ......... } =20 =20 Thanks Vinod -----Original Message----- From: Martin Sebor [mailto:sebor@roguewave.com]=20 Sent: Thursday, April 06, 2006 5:21 AM To: stdcxx-dev@incubator.apache.org 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.=20 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 >=20 > Compiler:- Compaq C++ V6.5-014 for Compaq Tru64 UNIX V5.1B (Rev. 2650) > Machine:- OSF1 V5.1 2650 alpha >=20 > snippet of error log.. > cxx: Error: /opt/oms/include/xercesc/util/regx/Op.hpp, line 124: #757=20 > 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=20 > overloaded function "Token" is not a type name (symnottypname) > RangeOp(const short type, const Token* const token,=20 > MemoryManager* const manager =3D XMLPlatformUtils::fgMemoryManager); > ----------------------------------------^ >=20 >=20 > Thanks in advance > Vinod