Thread: I don't understand these build issues...

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Programming Ninja In-T...
    Join Date
    May 2009
    Posts
    827

    Arrow I don't understand these build issues...

    I don't understand these build issues when trying to compile:

    from /usr/include/c++/4.6/bits/locale_classes.h:42,
    from /usr/include/c++/4.6/bits/ios_base.h:43,
    from /usr/include/c++/4.6/ios:43,
    from /usr/include/c++/4.6/istream:40,
    from /usr/include/c++/4.6/fstream:40,
    from C_html4_tags.cpp:2:
    /usr/include/c++/4.6/bits/stl_function.h:-1: In member function ‘bool std::less<_Tp>::operator()(const _Tp&, const _Tp&) const [with _Tp = S_browser]’:
    /usr/include/c++/4.6/bits/stl_function.h:236: error: no match for ‘operator<’ in ‘__x < __y’
    candidates are:
    /usr/include/c++/4.6/bits/stl_pair.h:207: template<class _T1, class _T2> bool std::operator<(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
    /usr/include/c++/4.6/bits/stl_iterator.h:291: template<class _Iterator> bool std::operator<(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
    /usr/include/c++/4.6/bits/stl_iterator.h:341: template<class _IteratorL, class _IteratorR> bool std::operator<(const std::reverse_iterator<_IteratorL>&, const std::reverse_iterator<_IteratorR>&)
    /usr/include/c++/4.6/bits/basic_string.h:2510: template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const std::basic_string<_CharT, _Traits, _Alloc>&, const std::basic_string<_CharT, _Traits, _Alloc>&)
    /usr/include/c++/4.6/bits/basic_string.h:2522: template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const std::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)
    /usr/include/c++/4.6/bits/basic_string.h:2534: template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const _CharT*, const std::basic_string<_CharT, _Traits, _Alloc>&)
    /usr/include/c++/4.6/bits/stl_vector.h:1290: template<class _Tp, class _Alloc> bool std::operator<(const std::vector<_Tp, _Alloc>&, const std::vector<_Tp, _Alloc>&)
    /usr/include/c++/4.6/bits/stl_tree.h:856: template<class _Key, class _Val, class _KeyOfValue, class _Compare, class _Alloc> bool std::operator<(const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&, const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&)
    /usr/include/c++/4.6/bits/stl_map.h:894: template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator<(const std::map<_Key, _Tp, _Compare, _Alloc>&, const std::map<_Key, _Tp, _Compare, _Alloc>&)
    /usr/include/c++/4.6/bits/stl_multimap.h:812: template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator<(const std::multimap<_Key, _Tp, _Compare, _Alloc>&, const std::multimap<_Key, _Tp, _Compare, _Alloc>&)
    Line 2 of C_html4_tags.cpp is "#include <fstream>". Because of the "S_browser" part of the message (marked in bold), and the thing about 'operator<', I was thinking that maybe somewhere in the code I was misusing the operator '<' somewhere near 'S_browser', but I already looked through everywhere which contained references to S_browser, and did not spot any errors, or even uses of the < operator with S_browser or map<S_browser, TYPE_attr_values> or anywhere near those things. And since the build issues doesn't actually identify the line of my code which is producing these messages, I'm lost as to where to look to find the cause of the problem.

    Any thoughts on this matter?

    Thanks.
    Last edited by Programmer_P; 09-23-2012 at 08:55 AM.
    I'm an alien from another world. Planet Earth is only my vacation home, and I'm not liking it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. build GNU GCC 4.3.1
    By MarkZWEERS in forum Tech Board
    Replies: 8
    Last Post: 08-10-2008, 10:43 AM
  2. PC build...
    By Bajanine in forum Tech Board
    Replies: 20
    Last Post: 05-23-2007, 10:39 AM
  3. how to build AST ?!
    By Meshal in forum C Programming
    Replies: 7
    Last Post: 12-13-2006, 06:05 AM
  4. non dot net build
    By luigi40 in forum C# Programming
    Replies: 11
    Last Post: 11-08-2005, 04:11 PM
  5. Build my own *.lib
    By Markitos in forum C Programming
    Replies: 1
    Last Post: 10-31-2001, 05:22 PM