Menu

compile problem: no match for ‘operator=’

Help
2007-12-28
2013-04-01
  • Samuel Brauer

    Samuel Brauer - 2007-12-28

    Hi!  I'm trying to compile Smartmenu 0.2.2 and get the following error running make:

    g++ -Wall -g3 -c -o mtree.o mtree.cc
    mtree.cc: In constructor ‘mTreeNode::mTreeNode(int, mTreeNode*)’:
    mtree.cc:34: error: no match for ‘operator=’ in ‘((mTreeNode*)this)->mTreeNode::selected = 0’
    /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_list.h:112: note: candidates are: std::_List_iterator<mTreeNode*>& std::_List_iterator<mTreeNode*>::operator=(const std::_List_iterator<mTreeNode*>&)
    mtree.cc: In member function ‘void mTreeNode::insert(mTreeNode*)’:
    mtree.cc:83: error: no match for ‘operator==’ in ‘((mTreeNode*)this)->mTreeNode::selected == 0’
    /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_list.h:169: note: candidates are: bool std::_List_iterator<_Tp>::operator==(const std::_List_iterator<_Tp>&) const [with _Tp = mTreeNode*]
    make: *** [mtree.o] Error 1

    I'm on Ubuntu 7.04 using g++/gcc 4.1.2.
    I'd be very grateful for any help or advice.

    Thank you,
    Sam

     
    • ludovic p

      ludovic p - 2008-01-01

      Hi,
      The compilation failure is due to old code not compiling with newer gcc versions...
      This is now fixed ! (version 0.2.3).

      Ludovic

       
      • Samuel Brauer

        Samuel Brauer - 2008-01-11

        Thank you!!!  It builds for me now, and I'm really enjoying using Smartmenu :)

         

Log in to post a comment.

MongoDB Logo MongoDB