This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: STL errors


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]