From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11826 invoked by alias); 23 Jan 2003 18:12:13 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 11819 invoked from network); 23 Jan 2003 18:12:13 -0000 Received: from unknown (HELO bosvwl01.infosys.com) (216.52.49.35) by 172.16.49.205 with SMTP; 23 Jan 2003 18:12:13 -0000 Received: from 192.168.200.81 by bosvwl01.infosys.com (InterScan E-Mail VirusWall NT); Thu, 23 Jan 2003 13:00:43 -0500 Received: from mohmsg01.ad.infosys.com ([192.168.122.42]) by indhubbhs01.ad.infosys.com with Microsoft SMTPSVC(5.0.2195.5329); Thu, 23 Jan 2003 23:46:14 +0530 X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: no matching function for call to``vector>::at (int &) const' Date: Thu, 23 Jan 2003 18:12:00 -0000 Message-ID: <2B721C6525F0D411B1E900B0D0226BDD02148C10@mohmsg01.ad.infosys.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Ajay Bansal" To: "John Love-Jensen" , X-OriginalArrivalTime: 23 Jan 2003 18:16:14.0801 (UTC) FILETIME=[8417E410:01C2C30B] X-SW-Source: 2003-01/txt/msg00213.txt.bz2 Thanks John We were doing a blunder... Compiling with a older version of g++ without even knowing about it. "-M" option helped us know about the problem. -Ajay -----Original Message----- From: John Love-Jensen [mailto:eljay@adobe.com]=20 Sent: Thursday, January 23, 2003 6:52 PM To: Ajay Bansal; gcc-help@gcc.gnu.org Subject: Re: no matching function for call to``vector>::at (int &) const' Hi Ajay, You can check out which header files are introduced into your source code via: g++ -M foo.cpp > foo.d ...and take a critical look at foo.d. It will tell you which header files, in particular compiler header files, are being pulled in. Are those header files the ones from the old 2.10 or 2.90 Standard Library, or are they the ones from the 3.x Standard Library? (The Standard Library has it's own version, independent of the GCC release.) If you are unsure, you might want to open the vector header file (i.e., stl_vector.h has the implementation) and confirm that it has an at() method. --Eljay