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]

STL errors


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'

I've commented out all of the code and am only exposing headers to see where
the problem is and it seems that as soon as I expose #include<string> in one
of the application headers i start seeing list of these errors....I've tried
including <string> in my own simple c++ routine and it seems to work.  Is
there a g++ compiler option that i need to include Any help would be greatly
appreciated as I've already spent days I dont have on this...
-- 
View this message in context: http://old.nabble.com/STL-errors-tp27261391p27261391.html
Sent from the gcc - libstdc++ mailing list archive at Nabble.com.


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