This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
RE: STL errors
- From: "Minhaj Ahmed" <MinhajA at bsquare dot com>
- To: "Paolo Carlini" <paolo dot carlini at oracle dot com>
- Cc: <libstdc++ at gcc dot gnu dot org>
- Date: Thu, 21 Jan 2010 10:32:56 -0800
- Subject: RE: STL errors
- References: <27261391.post@talk.nabble.com> <4B589434.2000301@oracle.com>
Paolo,
Thanx for the reply. Your suggestion helped a lot. When I included
<algorithm> in one of the project's header it gave me a different set of
errors and I noticed a path to debug header file that was pointing to my
project. It turns out I have debug.h file in the project that I am
working on and that's what was causing all sort of problems it
seems...still trying to make sure I am not just hallucinating but just
wanted to drop an update...porting projects are always fun...thanx
again...
-----Original Message-----
From: Paolo Carlini [mailto:paolo.carlini@oracle.com]
Sent: Thursday, January 21, 2010 11:52 AM
To: Minhaj Ahmed
Cc: libstdc++@gcc.gnu.org
Subject: Re: STL errors
On 01/21/2010 06:25 PM, Ahm wrote:
> I am trying to compile some code with a lot of template classes and
keep
> getting the following error:
>
> In file ncluded from /usr/include/c++/4.2/memory:57
> from /usr/include/c++/4.2/string:48
> ......
> /usr/include/c++/4.2/bits/stl_tree.h: In function 'bool
> std::operator==(const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Copare,
> _Alloc>&, const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare,
_Alloc>&):
> /usr/include/c++/4.2/bits/stl_tree.h:758: error: 'equal' is not a
member of
> 'std'
>
It's impossible to analyze such a problem without a full self-contained
snippet of code. In any case, if including <algorithm>, to which
std::equal belongs, in your code, doesn't fix it, something is seriously
broken somewhere.
Paolo.