This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: no matching function for call to``vector<C1,allocator<C1>>::at (int &) const'
- From: "Ajay Bansal" <Ajay_Bansal at infosys dot com>
- To: "John Love-Jensen" <eljay at adobe dot com>,<gcc-help at gcc dot gnu dot org>
- Date: Thu, 23 Jan 2003 23:46:13 +0530
- Subject: RE: no matching function for call to``vector<C1,allocator<C1>>::at (int &) const'
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]
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<C1,allocator<C1>>::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