Bug#29953: Problems compiling KDevelop 2.0 with GCC 3 on Alpha
Harald Fernengel
harry at bnro.de
Tue Jul 31 11:56:20 UTC 2001
Hi,
this one is easy...
just replace the "friend xyz" with:
friend class KWriteDoc;
friend class KWrite;
friend class KIconBorder;
This should do the trick :)
As soon as the CVS is open again I'll commit it to the tree.
Harry
> Changing line 77 of kdevelop/dbg/breakpointdialog.cpp to
> label2->setMaximumWidth(QMAX(label1->sizeHint().width(),
> allowed that file to compile on Linux Alpha, however KDevelop still fails
> to compile with the following error:
>
> g++-3.0 -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/kde
> -I/usr/include/qt -I/usr/X11R6/include -DNDEBUG -O2 -mieee -fno-exceptions
> -fno-check-new -Wp,-MD,.deps/kwview.pp -c kwview.cpp -fPIC -DPIC -o
> .libs/kwview.o
> In file included from kwview.cpp:1:
> kwview.h:168: friend declaration requires class-key, i.e. `friend class
> KWriteDoc'
> kwview.h:169: friend declaration requires class-key, i.e. `friend class
> KWrite'
> kwview.h:170: friend declaration requires class-key, i.e. `friend class
> KIconBorder'
> kwview.h:286: friend declaration requires class-key, i.e. `friend class
> KWriteView'
> kwview.h:287: friend declaration requires class-key, i.e. `friend class
> KWriteDoc'
> kwview.h:288: friend declaration requires class-key, i.e. `friend class
> KIconBorder'
> In file included from kwdoc.h:16,
> from kwview.cpp:2:
> highlight.h:342: friend declaration requires class-key, i.e. `friend class
> HlManager'
> In file included from kwview.cpp:2:
> kwdoc.h:148: friend declaration requires class-key, i.e. `friend class
> KWriteView'
> kwdoc.h:149: friend declaration requires class-key, i.e. `friend class
> KWrite'
> kwdoc.h:150: friend declaration requires class-key, i.e. `friend class
> HlManager'
> kwdoc.h:151: friend declaration requires class-key, i.e. `friend class
> KIconBorder'
> make[4]: *** [kwview.lo] Error 1
> make[4]: Leaving directory
> `/src/kdevelop/kdevelop-1.9.20010727/kdevelop/kwrite'
>
> On Sun, Jul 29, 2001 at 06:03:50PM +0200, Harald Fernengel wrote:
> > Hi,
> >
> > try replacing the max() call with QMAX, hope that works.
> >
> > I did a grep over kdelibs and there QMAX is used all the time. I don't
> > know where our max() comes from, but we should try to use QMAX whenever
> > possible to determine the larger one of 2 variables ( see also QMIN ).
> >
> > Harry
> >
> > > Package: kdevelop
> > > Version: 2.0 CVS/CVSup/Snapshot (using KDE 2.2.0beta1)
> > > Severity: normal
> > > Installed from: Compiled sources
> > > Compiler: gcc-3.0
> > > OS: Linux - Alpha
> > > OS/Compiler notes: Not Specified
> > >
> > > The following was sent to me after I asked people to test my Debian
> > > KDevelop packages. They use the CVS source from July 27, 2001.
> > >
> > > Compiling with g++-3.0 on Alpha, I get the following build error so far
> > > (it compiles fine w/g++-2.95, but we can't use that for KDE on
> > > Alpha...long story):
> > >
> > > g++-3.0 -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/kde
> > > -I/usr/include/qt -I/usr/X11R6/include -DNDEBUG -O2 -mieee
> > > -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT
> > > -DQT_NO_ASCII_CAST -Wp,-MD,.deps/breakpointdialog.pp -c
> > > breakpointdialog.cpp -fPIC -DPIC -o .libs/breakpointdialog.o
> > > breakpointdialog.cpp: In constructor
> > > `BPDialog::BPDialog(Breakpoint*, QWidget*, const char*)':
> > > breakpointdialog.cpp:77: `max' undeclared (first use this function)
> > > breakpointdialog.cpp:77: (Each undeclared identifier is reported only
> > > once for each function it appears in.) make[4]: ***
> > > [breakpointdialog.lo] Error 1
> > > make[4]: Leaving directory
> > > `/src/kdevelop/kdevelop-1.9.20010727/kdevelop/dbg' make[3]: ***
> > > [all-recursive] Error 1
> > > make[3]: Leaving directory
> > > `/src/kdevelop/kdevelop-1.9.20010727/kdevelop' make[2]: ***
> > > [all-recursive] Error 1
> > > make[2]: Leaving directory `/src/kdevelop/kdevelop-1.9.20010727'
> > > make[1]: *** [all-recursive-am] Error 2
> > > make[1]: Leaving directory `/src/kdevelop/kdevelop-1.9.20010727'
> > > make: *** [build-stamp] Error 2
-
to unsubscribe from this list send an email to kdevelop-devel-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop-devel
mailing list