Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

/home/mayank/eiskaltdcpp-2.2.6/eiskaltdcpp-qt/src/PublicHubs.cpp: In member function ‘void PublicHubs::slotContextMenu()’: /home/mayank/eiskaltdcpp-2.2.6/eiskaltdcpp-qt/src/PublicHubs.cpp:154:75: error: capture of non-variable ‘PublicHubs::proxy’ In file included from /home/mayank/eiskaltdcpp-2.2.6/eiskaltdcpp-qt/src/PublicHubs.cpp:10:0: /home/mayank/eiskaltdcpp-2.2.6/eiskaltdcpp-qt/src/PublicHubs.h:85:26: note: ‘PublicHubProxyModel* PublicHubs::proxy’ declared here /home/mayank/eiskaltdcpp-2.2.6/eiskaltdcpp-qt/src/PublicHubs.cpp: In lambda function: /home/mayank/eiskaltdcpp-2.2.6/eiskaltdcpp-qt/src/PublicHubs.cpp:154:106: error: ‘this’ was not captured for this lambda function /home/mayank/eiskaltdcpp-2.2.6/eiskaltdcpp-qt/src/PublicHubs.cpp:154:129: error: return-statement with a value, in function returning 'void' [-fpermissive] In file included from /usr/lib/gcc/i686-redhat-linux/4.7.0/../../../../include/c++/4.7.0/algorithm:63:0, from /usr/include/QtCore/qglobal.h:68, from /usr/include/QtCore/qnamespace.h:45, from /usr/include/QtCore/qobjectdefs.h:45, from /usr/include/QtGui/qwindowdefs.h:45, from /usr/include/QtGui/qwidget.h:45, from /usr/include/QtGui/QWidget:1, from /home/mayank/eiskaltdcpp-2.2.6/eiskaltdcpp-qt/src/PublicHubs.h:13, from /home/mayank/eiskaltdcpp-2.2.6/eiskaltdcpp-qt/src/PublicHubs.cpp:10: /usr/lib/gcc/i686-redhat-linux/4.7.0/../../../../include/c++/4.7.0/bits/stl_algo.h: In instantiation of ‘_OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation) [with _IIter = QList<qmodelindex>::iterator; _OIter = QList<qmodelindex>::iterator; _UnaryOperation = PublicHubs::slotContextMenu()::<lambda(qmodelindex)&gt;]’: home="" mayank="" eiskaltdcpp-2.2.6="" eiskaltdcpp-qt="" src="" publichubs.cpp:154:130:="" required="" from="" here="" usr="" lib="" gcc="" i686-redhat-linux="" 4.7.0="" ..="" ..="" ..="" ..="" include="" c++="" 4.7.0="" bits="" stl_algo.h:4951:2:="" error:="" no="" match="" for="" ‘operator="’" in="" ‘__result.qlist<t="">::iterator::operator<qmodelindex>() = __unary_op.PublicHubs::slotContextMenu()::<lambda(qmodelindex)&gt;(qmodelindex((< em="">(const QModelIndex)__first.QList<t>::iterator::operator<qmodelindex>())))’ /usr/lib/gcc/i686-redhat-linux/4.7.0/../../../../include/c++/4.7.0/bits/stl_algo.h:4951:2: note: candidate is: In file included from /usr/include/QtGui/qabstractproxymodel.h:45:0, from /usr/include/QtGui/qsortfilterproxymodel.h:45, from /usr/include/QtGui/QSortFilterProxyModel:1, from /home/mayank/eiskaltdcpp-2.2.6/eiskaltdcpp-qt/src/PublicHubs.h:17, from /home/mayank/eiskaltdcpp-2.2.6/eiskaltdcpp-qt/src/PublicHubs.cpp:10: /usr/include/QtCore/qabstractitemmodel.h:58:7: note: QModelIndex& QModelIndex::operator=(const QModelIndex&) /usr/include/QtCore/qabstractitemmodel.h:58:7: note: no known conversion for argument 1 from ‘void’ to ‘const QModelIndex&’ make[2]: * [eiskaltdcpp-qt/CMakeFiles/eiskaltdcpp-qt.dir/src/PublicHubs.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... make[1]: [eiskaltdcpp-qt/CMakeFiles/eiskaltdcpp-qt.dir/all] Error 2 make: * [all] Error 2

the building process after 93% stops and the above error creeps up! wats ur say in it??