-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sun, 3 Mar 2002 15:33, you wrote: > The gcc compiler is becoming more and more strict about what it will > compile. The latest version (from CVS) will no longer compile functions if > the default parameter is given in both the .h file and the .cpp file.
A couple of lines needed to be changed to make the qt-plugin compile as well. See attached diff. I tried to compile the console plugin with this gcc as well, but it complained about a deprecated header and then freaked out like so: - --- toojays@hiro$ make make all-recursive make[1]: Entering directory `/usr/src/build/licq-console' Making all in src make[2]: Entering directory `/usr/src/build/licq-console/src' source='/usr/src/licq-20020302/plugins/console/src/console.cpp' object='console.lo' libtool=yes \ depfile='.deps/console.Plo' tmpdepfile='.deps/console.TPlo' \ depmode=gcc3 /bin/sh /usr/src/licq-20020302/plugins/console/admin/depcomp \ /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. - -I/usr/src/licq-20020302/plugins/console/src -I.. -Wall - -I/usr/src/licq-20020302/plugins/console/src -I/usr/src/licq-20020302/include - -I/usr/include/ncurses -fno-rtti -fno-exceptions -fno-check-new -c -o console.lo `test -f /usr/src/licq-20020302/plugins/console/src/console.cpp || echo '/usr/src/licq-20020302/plugins/console/src/'`/usr/src/licq-20020302/plugins/console/src/console.cpp g++ -DHAVE_CONFIG_H -I. -I/usr/src/licq-20020302/plugins/console/src -I.. - -Wall -I/usr/src/licq-20020302/plugins/console/src - -I/usr/src/licq-20020302/include -I/usr/include/ncurses -fno-rtti - -fno-exceptions -fno-check-new -c /usr/src/licq-20020302/plugins/console/src/console.cpp -MT console.lo -MF .deps/console.TPlo -MD -MP -fPIC -DPIC -o .libs/console.o In file included from /usr/include/g++-v3/backward/vector.h:59, from /usr/src/licq-20020302/plugins/console/src/console.cpp:8: /usr/include/g++-v3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated. In file included from /usr/src/licq-20020302/plugins/console/src/console.cpp:16: /usr/src/licq-20020302/plugins/console/src/console.h:41: syntax error before `; ' token /usr/src/licq-20020302/plugins/console/src/console.h:56: 'list' is used as a type, but is not defined as a type. /usr/src/licq-20020302/plugins/console/src/console.h:73: 'list' is used as a type, but is not defined as a type. /usr/src/licq-20020302/plugins/console/src/console.h:74: syntax error before ` ::' token /usr/src/licq-20020302/plugins/console/src/console.h:75: 'list' is used as a type, but is not defined as a type. /usr/src/licq-20020302/plugins/console/src/console.h:76: 'MacroList' is used as a type, but is not defined as a type. /usr/src/licq-20020302/plugins/console/src/console.h:92: `list' was not declared in this scope /usr/src/licq-20020302/plugins/console/src/console.h:92: parse error before `*' token /usr/src/licq-20020302/plugins/console/src/console.cpp:27:13: warning: extra tokens at end of #undef directive /usr/src/licq-20020302/plugins/console/src/console.cpp: In constructor `CLicqConsole::CLicqConsole(int, char**)': /usr/src/licq-20020302/plugins/console/src/console.cpp:146: `listMacros' undeclared (first use this function) /usr/src/licq-20020302/plugins/console/src/console.cpp:146: (Each undeclared identifier is reported only once for each function it appears in.) /usr/src/licq-20020302/plugins/console/src/console.cpp:160: `m_lCmdHistoryIter' undeclared (first use this function) /usr/src/licq-20020302/plugins/console/src/console.cpp:160: `m_lCmdHistory' undeclared (first use this function) /usr/src/licq-20020302/plugins/console/src/console.cpp: In member function `int CLicqConsole::Run(CICQDaemon*)': /usr/src/licq-20020302/plugins/console/src/console.cpp:272: `list' undeclared (first use this function) /usr/src/licq-20020302/plugins/console/src/console.cpp:272: parse error before `*' token /usr/src/licq-20020302/plugins/console/src/console.cpp:273: `iter' undeclared (first use this function) /usr/src/licq-20020302/plugins/console/src/console.cpp:273: `m_lFileStat' undeclared (first use this function) /usr/src/licq-20020302/plugins/console/src/console.cpp:306: parse error before `*' token /usr/src/licq-20020302/plugins/console/src/console.cpp:275: tree check: expected class 't', have 'x' (error_mark) in cp_type_quals, at cp/typeck.c: 6817 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. make[2]: *** [console.lo] Error 1 make[2]: Leaving directory `/usr/src/build/licq-console/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/build/licq-console' make: *** [all] Error 2 - --- So maybe this is a gcc bug, I don't know. The console plugin is not hugely important to me, and at this stage I don't think I know enough C++ to fix it, but someone here may be interested. cheers, John -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Messages with missing or bad signatures may have been forged or modified in transit! iEYEARECAAYFAjyBvZsACgkQ0BW7kPcXjRWVxwCgoZbSMUG5L/7xyPyWXgRu3sP5 7BwAoNtifoIEhMf9EI8yFxcZvkpyS5iZ =xs+3 -----END PGP SIGNATURE-----
diff -ur /tmp/licq-20020302/plugins/qt-gui/src/ewidgets.cpp /usr/src/licq-20020302/plugins/qt-gui/src/ewidgets.cpp --- /tmp/licq-20020302/plugins/qt-gui/src/ewidgets.cpp Wed Dec 12 10:16:35 2001 +++ /usr/src/licq-20020302/plugins/qt-gui/src/ewidgets.cpp Sun Mar 3 15:46:49 2002 @@ -465,7 +465,7 @@ //- Message View Widget --------------------------------------------------------- -CMessageViewWidget::CMessageViewWidget(unsigned long _nUin, QWidget* parent=0, const char * name =0) +CMessageViewWidget::CMessageViewWidget(unsigned long _nUin, QWidget* parent, const char * name) :CHistoryWidget(parent,name) { m_nUin= _nUin; diff -ur /tmp/licq-20020302/plugins/qt-gui/src/wharf.cpp /usr/src/licq-20020302/plugins/qt-gui/src/wharf.cpp --- /tmp/licq-20020302/plugins/qt-gui/src/wharf.cpp Wed Mar 7 01:29:20 2001 +++ /usr/src/licq-20020302/plugins/qt-gui/src/wharf.cpp Sun Mar 3 16:06:52 2002 @@ -65,7 +65,7 @@ /* Constructs a WharfIcon widget. */ -IconManager::IconManager(CMainWindow *_mainwin, QPopupMenu *_menu, QWidget *parent = 0) +IconManager::IconManager(CMainWindow *_mainwin, QPopupMenu *_menu, QWidget *parent) : QWidget(parent, "LicqWharf", WType_TopLevel) { setCaption("LicqWharf");