[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: kde1.1.2, qt1.44, g++ 2.95.1, solaris - error
From:       Robert Griebl <griebl () gmx ! net>
Date:       1999-09-13 20:04:25
[Download RAW message or body]

Am Mon, 13 Sep 1999 schrieb Michael Reiher:
> "Stefan Siegel (Ag Haerder)" wrote:
> > 
> > Hello,
> Hi,
> 

Hi

> How ever there is one thing I couldn't fix. It's the error you describe.
> The strange thing is that the the affected function(in qbuffer.h) looks
> like this:
> 
> 80: inline int QBuffer::at() const
> 81: { return index; }
> 
> where index is just a normal integer. So I don't know what to cast here.
> Anyone an idea how to fix this(favoritely without modifing qt)?
> 
> > It stops compilation with the following error:
> > 
> > -------8<-------------------------------------------------->8----------
> > g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/shared/KDE/KDE1.1.2/include \
> > -I/shared/KDE/qt/include      -O2 -Wall -c root.cpp In file included from \
> > /shared/KDE/KDE1.1.2/include/html.h:42, from root.h:14,
> > from root.cpp:21:
> > /shared/KDE/qt/include/qbuffer.h: In method `int QBuffer::at() const':
> > /shared/KDE/qt/include/qbuffer.h:81: return to `int' from `char * (*)(const char \
> > *, int)' lacks a cast gmake[3]: *** [root.o] Error 1
> > gmake[3]: Leaving directory `/shared/KDE/source/kdebase/kfm'
> > -------8<-------------------------------------------------->8----------
> 

Look like index is a function adress with signature:
char *index ( const char *, int ); and not a plain integer

Maybe a 'this-> index' could do it ...

cu
Robert

PS: do a 'man index' on Linux ...

> Greets
> 
> Michael
> 
> -- 
> Michael Reiher  
> Student at Dresden University of Technology
> Department of Computer Science
> email: michael.reiher@gmx.de


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic