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
Hi, The compilation failure is due to old code not compiling with newer gcc versions... This is now fixed ! (version 0.2.3).
Ludovic
Thank you!!! It builds for me now, and I'm really enjoying using Smartmenu :)
Log in to post a comment.
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
Hi,
The compilation failure is due to old code not compiling with newer gcc versions...
This is now fixed ! (version 0.2.3).
Ludovic
Thank you!!! It builds for me now, and I'm really enjoying using Smartmenu :)