From: Henrik J. <hp...@gl...> - 2002-08-27 19:21:14
|
Ok, obviously the problem seems to be with the toFind function (Among others). But I jusst can't wrap my head around this, does anyone know of anything wrong with this line: template <class T> std::list<T>::iterator toFind(std::list<T> &lst,const T &str) { for(std::list<T>::iterator i=lst.begin();i!=lst.end();i++) if (*i==str) return i; return lst.end(); } Also an example of the warning also gives me another question which is: Where in the gcc documentation can I find more info, google doesn't seem find it: utils.h:246: warning: `typename std::list<T, std::allocator<_CharT> >::iterator ' is implicitly a typename utils.h:246: warning: implicit typename is deprecated, please see the documentation for details utils.h: In function `std::list<T, std::allocator<_CharT> >::iterator toFind(std::list<T, std::allocator<_CharT> >&, const T&)': utils.h:247: warning: `typename std::list<T, std::allocator<_CharT> >::iterator ' is implicitly a typename utils.h:247: warning: implicit typename is deprecated, please see the documentation for details Any help would be appreciated, I don't have gcc-3.2 installed anywhere yet so any help would be appreciated. /Mauritz Underscore AB Michael Meskes wrote: >Hi, > >it seems tora doesn't compile cleanly with gcc >= 3.0. Please see >attached log file for details. > >Also I've been experiencing problem when changing data in scheme mode. >Sometimes data is changed, sometimes it is not although I always hit >the confirm button. Earlier today I even got an error message. It seems >when the text in a text field is too long, tora opens a special window >to let me edit it. Afterwards it tries to update the record and gets an >error message. The statement is so long it's difficult to send >the complete text, however, the error message is originated in >PostgreSQL's backend. It tries to interpret the text I entered as SQL >text or an attribute name. > >Michael > > > >------------------------------------------------------------------------ > >/usr/bin/make >make[1]: Entering directory `/home/mme/tora-1.3.7' >Making dependences for main.cpp >Making dependences for utils.cpp >Making dependences for toworksheetstatistic.cpp >Making dependences for toworksheetsetupui.cpp >Making dependences for toworksheet.cpp >Making dependences for towaitevents.cpp >Making dependences for tovisualize.cpp >Making dependences for totoolsettingui.cpp >Making dependences for totool.cpp >Making dependences for tothread.cpp >Making dependences for totextview.cpp >Making dependences for totemplatesetupui.cpp >Making dependences for totemplateprovider.cpp >Making dependences for totemplateeditui.cpp >Making dependences for totemplateaddfileui.cpp >Making dependences for totemplate.cpp >Making dependences for tosyntaxsetupui.cpp >Making dependences for tosyntaxsetup.cpp >Making dependences for tosqlparse.cpp >Making dependences for tosqledit.cpp >Making dependences for tosql.cpp >Making dependences for tosmtp.cpp >Making dependences for tosgastatement.cpp >Making dependences for tosearchreplaceui.cpp >Making dependences for tosearchreplace.cpp >Making dependences for toresultview.cpp >Making dependences for toresultstorage.cpp >Making dependences for toresultstats.cpp >Making dependences for toresultreferences.cpp >Making dependences for toresultplan.cpp >Making dependences for toresultpie.cpp >Making dependences for toresultparam.cpp >Making dependences for toresultlong.cpp >Making dependences for toresultlock.cpp >Making dependences for toresultlistformatui.cpp >Making dependences for toresultline.cpp >Making dependences for toresultlabel.cpp >Making dependences for toresultitem.cpp >Making dependences for toresultindexes.cpp >Making dependences for toresultfield.cpp >Making dependences for toresultextract.cpp >Making dependences for toresultdepend.cpp >Making dependences for toresultcontentfilterui.cpp >Making dependences for toresultcontent.cpp >Making dependences for toresultconstraint.cpp >Making dependences for toresultcombo.cpp >Making dependences for toresultcols.cpp >Making dependences for toresultbar.cpp >Making dependences for toresult.cpp >Making dependences for toreport.cpp >Making dependences for toqsqlconnection.cpp >Making dependences for toproject.cpp >Making dependences for topreferencesui.cpp >Making dependences for topreferences.cpp >Making dependences for topiechart.cpp >Making dependences for toparamget.cpp >Making dependences for tonoblockquery.cpp >Making dependences for tonewconnectionui.cpp >Making dependences for tonewconnection.cpp >Making dependences for tomessageui.cpp >Making dependences for tomemoeditor.cpp >Making dependences for tomarkedtext.cpp >Making dependences for tomain.cpp >Making dependences for tolinechartsetupui.cpp >Making dependences for tolinechart.cpp >Making dependences for tolegendchart.cpp >Making dependences for tohtml.cpp >Making dependences for tohighlightedtext.cpp >Making dependences for tohelpsetupui.cpp >Making dependences for tohelpaddfileui.cpp >Making dependences for tohelp.cpp >Making dependences for toglobalsettingui.cpp >Making dependences for toglobalsetting.cpp >Making dependences for tofilesize.cpp >Making dependences for toextract.cpp >Making dependences for toeditwidget.cpp >Making dependences for toeditextensionsetupui.cpp >Making dependences for toeditextensions.cpp >Making dependences for todatabasesettingui.cpp >Making dependences for toconnection.cpp >Making dependences for tochartsetupui.cpp >Making dependences for tochartmanager.cpp >Making dependences for tochartalarmui.cpp >Making dependences for tochangeconnection.cpp >Making dependences for tobrowsertableui.cpp >Making dependences for tobrowserindexui.cpp >Making dependences for tobrowserfilterui.cpp >Making dependences for tobrowserconstraintui.cpp >Making dependences for tobrowser.cpp >Making dependences for tobarchart.cpp >Making dependences for tobackground.cpp >Making dependences for toanalyze.cpp >Making dependences for toaboutui.cpp >Making dependences for toabout.cpp >make[1]: Leaving directory `/home/mme/tora-1.3.7' >make[1]: Entering directory `/home/mme/tora-1.3.7' >Compiling toabout.cpp >Compiling toaboutui.cpp >Compiling tobackground.cpp >In file included from tobackground.cpp:35: >utils.h:246: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:246: warning: implicit typename is deprecated, please see the > documentation for details >utils.h: In function `std::list<T, std::allocator<_CharT> >::iterator > toFind(std::list<T, std::allocator<_CharT> >&, const T&)': >utils.h:247: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:247: warning: implicit typename is deprecated, please see the > documentation for details >Compiling toconnection.cpp >In file included from toconnection.cpp:35: >utils.h:246: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:246: warning: implicit typename is deprecated, please see the > documentation for details >utils.h: In function `std::list<T, std::allocator<_CharT> >::iterator > toFind(std::list<T, std::allocator<_CharT> >&, const T&)': >utils.h:247: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:247: warning: implicit typename is deprecated, please see the > documentation for details >Compiling todatabasesettingui.cpp >Compiling toeditwidget.cpp >Compiling toglobalsetting.cpp >In file included from toglobalsetting.cpp:35: >utils.h:246: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:246: warning: implicit typename is deprecated, please see the > documentation for details >utils.h: In function `std::list<T, std::allocator<_CharT> >::iterator > toFind(std::list<T, std::allocator<_CharT> >&, const T&)': >utils.h:247: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:247: warning: implicit typename is deprecated, please see the > documentation for details >Compiling toglobalsettingui.cpp >Compiling tohelp.cpp >In file included from tohelp.cpp:35: >utils.h:246: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:246: warning: implicit typename is deprecated, please see the > documentation for details >utils.h: In function `std::list<T, std::allocator<_CharT> >::iterator > toFind(std::list<T, std::allocator<_CharT> >&, const T&)': >utils.h:247: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:247: warning: implicit typename is deprecated, please see the > documentation for details >Compiling tohelpaddfileui.cpp >Compiling tohelpsetupui.cpp >Compiling tohighlightedtext.cpp >In file included from tohighlightedtext.cpp:35: >utils.h:246: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:246: warning: implicit typename is deprecated, please see the > documentation for details >utils.h: In function `std::list<T, std::allocator<_CharT> >::iterator > toFind(std::list<T, std::allocator<_CharT> >&, const T&)': >utils.h:247: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:247: warning: implicit typename is deprecated, please see the > documentation for details >Compiling tohtml.cpp >Compiling tomain.cpp >In file included from tomain.cpp:35: >utils.h:246: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:246: warning: implicit typename is deprecated, please see the > documentation for details >utils.h: In function `std::list<T, std::allocator<_CharT> >::iterator > toFind(std::list<T, std::allocator<_CharT> >&, const T&)': >utils.h:247: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:247: warning: implicit typename is deprecated, please see the > documentation for details >Compiling tomarkedtext.cpp >In file included from tomarkedtext.cpp:35: >utils.h:246: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:246: warning: implicit typename is deprecated, please see the > documentation for details >utils.h: In function `std::list<T, std::allocator<_CharT> >::iterator > toFind(std::list<T, std::allocator<_CharT> >&, const T&)': >utils.h:247: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:247: warning: implicit typename is deprecated, please see the > documentation for details >Compiling tomemoeditor.cpp >In file included from tomemoeditor.cpp:35: >utils.h:246: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:246: warning: implicit typename is deprecated, please see the > documentation for details >utils.h: In function `std::list<T, std::allocator<_CharT> >::iterator > toFind(std::list<T, std::allocator<_CharT> >&, const T&)': >utils.h:247: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:247: warning: implicit typename is deprecated, please see the > documentation for details >Compiling tomessageui.cpp >Compiling tonewconnection.cpp >In file included from tonewconnection.cpp:35: >utils.h:246: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:246: warning: implicit typename is deprecated, please see the > documentation for details >utils.h: In function `std::list<T, std::allocator<_CharT> >::iterator > toFind(std::list<T, std::allocator<_CharT> >&, const T&)': >utils.h:247: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:247: warning: implicit typename is deprecated, please see the > documentation for details >Compiling tonewconnectionui.cpp >Compiling tonoblockquery.cpp >In file included from tonoblockquery.cpp:35: >utils.h:246: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:246: warning: implicit typename is deprecated, please see the > documentation for details >utils.h: In function `std::list<T, std::allocator<_CharT> >::iterator > toFind(std::list<T, std::allocator<_CharT> >&, const T&)': >utils.h:247: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:247: warning: implicit typename is deprecated, please see the > documentation for details >Compiling toparamget.cpp >In file included from toparamget.cpp:35: >utils.h:246: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:246: warning: implicit typename is deprecated, please see the > documentation for details >utils.h: In function `std::list<T, std::allocator<_CharT> >::iterator > toFind(std::list<T, std::allocator<_CharT> >&, const T&)': >utils.h:247: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:247: warning: implicit typename is deprecated, please see the > documentation for details >Compiling topreferences.cpp >In file included from topreferences.cpp:35: >utils.h:246: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:246: warning: implicit typename is deprecated, please see the > documentation for details >utils.h: In function `std::list<T, std::allocator<_CharT> >::iterator > toFind(std::list<T, std::allocator<_CharT> >&, const T&)': >utils.h:247: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:247: warning: implicit typename is deprecated, please see the > documentation for details >Compiling topreferencesui.cpp >Compiling toresult.cpp >In file included from toresult.cpp:35: >utils.h:246: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:246: warning: implicit typename is deprecated, please see the > documentation for details >utils.h: In function `std::list<T, std::allocator<_CharT> >::iterator > toFind(std::list<T, std::allocator<_CharT> >&, const T&)': >utils.h:247: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:247: warning: implicit typename is deprecated, please see the > documentation for details >Compiling toresultfield.cpp >In file included from toresultfield.cpp:35: >utils.h:246: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:246: warning: implicit typename is deprecated, please see the > documentation for details >utils.h: In function `std::list<T, std::allocator<_CharT> >::iterator > toFind(std::list<T, std::allocator<_CharT> >&, const T&)': >utils.h:247: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:247: warning: implicit typename is deprecated, please see the > documentation for details >Compiling toresultitem.cpp >In file included from toresultitem.cpp:35: >utils.h:246: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:246: warning: implicit typename is deprecated, please see the > documentation for details >utils.h: In function `std::list<T, std::allocator<_CharT> >::iterator > toFind(std::list<T, std::allocator<_CharT> >&, const T&)': >utils.h:247: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:247: warning: implicit typename is deprecated, please see the > documentation for details >Compiling toresultlistformatui.cpp >Compiling toresultstats.cpp >In file included from toresultstats.cpp:35: >utils.h:246: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:246: warning: implicit typename is deprecated, please see the > documentation for details >utils.h: In function `std::list<T, std::allocator<_CharT> >::iterator > toFind(std::list<T, std::allocator<_CharT> >&, const T&)': >utils.h:247: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:247: warning: implicit typename is deprecated, please see the > documentation for details >Compiling toresultview.cpp >In file included from toresultview.cpp:35: >utils.h:246: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:246: warning: implicit typename is deprecated, please see the > documentation for details >utils.h: In function `std::list<T, std::allocator<_CharT> >::iterator > toFind(std::list<T, std::allocator<_CharT> >&, const T&)': >utils.h:247: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:247: warning: implicit typename is deprecated, please see the > documentation for details >Compiling tosearchreplace.cpp >In file included from tosearchreplace.cpp:35: >utils.h:246: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:246: warning: implicit typename is deprecated, please see the > documentation for details >utils.h: In function `std::list<T, std::allocator<_CharT> >::iterator > toFind(std::list<T, std::allocator<_CharT> >&, const T&)': >utils.h:247: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:247: warning: implicit typename is deprecated, please see the > documentation for details >Compiling tosearchreplaceui.cpp >Compiling tosmtp.cpp >In file included from tosmtp.cpp:35: >utils.h:246: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:246: warning: implicit typename is deprecated, please see the > documentation for details >utils.h: In function `std::list<T, std::allocator<_CharT> >::iterator > toFind(std::list<T, std::allocator<_CharT> >&, const T&)': >utils.h:247: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:247: warning: implicit typename is deprecated, please see the > documentation for details >Compiling tosql.cpp >In file included from tosql.cpp:35: >utils.h:246: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:246: warning: implicit typename is deprecated, please see the > documentation for details >utils.h: In function `std::list<T, std::allocator<_CharT> >::iterator > toFind(std::list<T, std::allocator<_CharT> >&, const T&)': >utils.h:247: warning: `typename std::list<T, std::allocator<_CharT> >::iterator > ' is implicitly a typename >utils.h:247: warning: implicit typename is deprecated, please see the > documentation for details >tosql.cpp: In static member function `static bool toSQL::updateSQL(const > QCString&, const QString&, const QString&, const QCString&, const QCString&, > bool)': >tosql.cpp:116: ambiguous overload for `QCString& > const QCString&' operator >tosql.cpp:116: candidates are: operator>(const char*, const char*) <built-in> >/usr/include/qt/qcstring.h:323: bool operator>(const QCString&, > const char*) >/usr/include/qt/qcstring.h:326: bool operator>(const char*, > const QCString&) >/usr/include/qt/qstring.h:832: bool operator>(const QString&, > const QString&) >/usr/include/qt/qstring.h:839: bool operator>(const QString&, > const char*) >tosql.cpp:117: ambiguous overload for `QCString& > const QCString&' operator >tosql.cpp:117: candidates are: operator>(const char*, const char*) <built-in> >/usr/include/qt/qcstring.h:323: bool operator>(const QCString&, > const char*) >/usr/include/qt/qcstring.h:326: bool operator>(const char*, > const QCString&) >/usr/include/qt/qstring.h:832: bool operator>(const QString&, > const QString&) >/usr/include/qt/qstring.h:839: bool operator>(const QString&, > const char*) >tosql.cpp: In static member function `static bool toSQL::deleteSQL(const > QCString&, const QCString&, const QCString&)': >tosql.cpp:144: ambiguous overload for `QCString& > const QCString&' operator >tosql.cpp:144: candidates are: operator>(const char*, const char*) <built-in> >/usr/include/qt/qcstring.h:323: bool operator>(const QCString&, > const char*) >/usr/include/qt/qcstring.h:326: bool operator>(const char*, > const QCString&) >/usr/include/qt/qstring.h:832: bool operator>(const QString&, > const QString&) >/usr/include/qt/qstring.h:839: bool operator>(const QString&, > const char*) >tosql.cpp:145: ambiguous overload for `QCString& > const QCString&' operator >tosql.cpp:145: candidates are: operator>(const char*, const char*) <built-in> >/usr/include/qt/qcstring.h:323: bool operator>(const QCString&, > const char*) >/usr/include/qt/qcstring.h:326: bool operator>(const char*, > const QCString&) >/usr/include/qt/qstring.h:832: bool operator>(const QString&, > const QString&) >/usr/include/qt/qstring.h:839: bool operator>(const QString&, > const char*) >tosql.cpp: In static member function `static QString toSQL::string(const > QCString&, const toConnection&)': >tosql.cpp:180: ambiguous overload for `QCString& <= QCString&' operator >tosql.cpp:180: candidates are: operator<=(const char*, const char*) <built-in> >/usr/include/qt/qcstring.h:317: bool operator<=(const > QCString&, const char*) >/usr/include/qt/qcstring.h:320: bool operator<=(const char*, > const QCString&) >/usr/include/qt/qstring.h:830: bool operator<=(const QString&, > const QString&) >/usr/include/qt/qstring.h:837: bool operator<=(const QString&, > const char*) >/usr/include/qt/qstring.h:843: bool operator<=(const char*, > const QString&) >tosql.cpp:183: ambiguous overload for `QCString& >= QCString&' operator >tosql.cpp:183: candidates are: operator>=(const char*, const char*) <built-in> >/usr/include/qt/qcstring.h:329: bool operator>=(const > QCString&, const char*) >/usr/include/qt/qcstring.h:332: bool operator>=(const char*, > const QCString&) >/usr/include/qt/qstring.h:833: bool operator>=(const QString&, > const QString&) >/usr/include/qt/qstring.h:840: bool operator>=(const QString&, > const char*) >/usr/include/qt/qstring.h:846: bool operator>=(const char*, > const QString&) >tosql.cpp: In static member function `static std::list<QCString, > std::allocator<QCString> > toSQL::range(const QCString&)': >tosql.cpp:331: ambiguous overload for `const QCString& > const QCString&' > operator >tosql.cpp:331: candidates are: operator>(const char*, const char*) <built-in> >/usr/include/qt/qcstring.h:323: bool operator>(const QCString&, > const char*) >/usr/include/qt/qcstring.h:326: bool operator>(const char*, > const QCString&) >/usr/include/qt/qstring.h:832: bool operator>(const QString&, > const QString&) >/usr/include/qt/qstring.h:839: bool operator>(const QString&, > const char*) >make[1]: *** [objs/tosql.o] Fehler 1 >make[1]: Leaving directory `/home/mme/tora-1.3.7' >make: *** [build-stamp] Fehler 2 > > |