Bug#29953: Problems compiling KDevelop 2.0 with GCC 3 on Alpha

Harald Fernengel harry at bnro.de
Sun Jul 29 16:03:50 UTC 2001


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