[Uml-user] Compile error in uml/operations.cpp
Sebastian Stein
s5228 at informatik.htw-dresden.de
Tue Jul 16 10:56:04 UTC 2002
Hi again,
I did:
changed the linebreaks in all cpp, h and cc files
sh configure --prefix=/opt/kde
make
and I get:
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/kde/include
-I/usr/lib/qt-3.0.3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT
-D_REENTRANT -O2 -fno-exceptions -fno-check-new -c operation.cpp
(NOCOMPILERCACHE environment variable set, cache bypass)
operation.cpp: In method `bool UMLOperation::operator ==(UMLOperation &)':
operation.cpp:190: no match for `QPtrList<UMLAttribute> & !=
QPtrList<UMLAttribute> &'
/usr/lib/qt-3.0.3/include/qcstring.h:299: candidates are: bool operator
!=(const QCString &, const QCString &)
/usr/lib/qt-3.0.3/include/qcstring.h:302: bool operator
!=(const QCString &, const char *)
/usr/lib/qt-3.0.3/include/qcstring.h:305: bool operator
!=(const char *, const QCString &)
/usr/lib/qt-3.0.3/include/qstring.h:303: bool operator
!=(QChar, QChar)
/usr/lib/qt-3.0.3/include/qstring.h:308: bool operator
!=(char, QChar)
/usr/lib/qt-3.0.3/include/qstring.h:313: bool operator
!=(QChar, char)
/usr/lib/qt-3.0.3/include/qstring.h:825: bool operator
!=(const QString &, const QString &)
/usr/lib/qt-3.0.3/include/qstring.h:832: bool operator
!=(const QString &, const char *)
/usr/lib/qt-3.0.3/include/qstring.h:838: bool operator
!=(const char *, const QString &)
/usr/lib/qt-3.0.3/include/qpoint.h:151: bool operator
!=(const QPoint &, const QPoint &)
/usr/lib/qt-3.0.3/include/qsize.h:155: bool operator
!=(const QSize &, const QSize &)
/usr/lib/qt-3.0.3/include/qrect.h:139: bool operator
!=(const QRect &, const QRect &)
make[3]: *** [operation.o] Fehler 1
I was able to fix the problem with:
if( &(m_List) != &(rhs.m_List) )
Is this what you wanted?
The same problem in uml/concept.cpp beginning with line 293
if( &(m_AttsList) != &(rhs.m_AttsList) )
return false;
if( &(m_OpsList) != &(rhs.m_OpsList) )
Now it compiles!
Steinchen
--
http://www.hpfsc.de/ - die Seite rund um:
Assembler, Bundeswehr, TFT LCDs, Halle/Saale, Fahrradtouren,
Wanderstaat Mauma, Raumschiff USS Nathan, Enemy Room, MLCAD Tutorial
More information about the umbrello
mailing list