Am Dienstag, 17. Mai 2005 21:49 schrieben Sie: > On Tuesday 17 May 2005 20:06, Ralf Habacker wrote: > > added casts, without compiling under cygwin fails > > - ch = str[ offset ]; > > + ch = str[ (int)offset ]; > > whats the error message? casting something that is used as an offset to a > signed integer is not very good.. /home/Habacker/src/extern/anonsvn.kde.org/kdelibs/khtml/khtml_part.cpp: In member function `void KHTMLPart::extendSelection(DOM::NodeImpl*, long int, DOM::Node&, long int&, bool, bool)': /home/Habacker/src/extern/anonsvn.kde.org/kdelibs/khtml/khtml_part.cpp:6160: error: ambiguous overload for 'operator[]' in 'str[offset]' /c/daten/qt-3/cygwin-x11/include/qstring.h:639: error: candidates are: QChar QString::operator[](int) const /c/daten/qt-3/cygwin-x11/include/qstring.h:640: error: QChar QString::operator[](unsigned int) const /c/daten/qt-3/cygwin-x11/include/qstring.h:812: error: QCharRef QString::operator[](int) /c/daten/qt-3/cygwin-x11/include/qstring.h:813: error: QCharRef QString::operator[](unsigned int) Error creating ../khtml/khtml_part.lo. Exit status 1. I'm using the cygwin port of qt 3.3.4-x11 and gcc 3.3.3 Ralf