On Friday 22 March 2002 02:20, Dirk Mueller wrote: > On Fre, 22 Mär 2002, aleXXX wrote: > > Sure ? > > Yes, absolutely sure. > > > At least the current kmessagebox.h expects an int as last parameter, I > > just checked once again and kdelibs/arts/message/artsmessage.cc uses > > bools. It doesn't link here, it says "undefined reference to > > KMessageBox::sorry(...,int);" > > But it wouldn't compile then. because currently it things the 3rd parameter > is a bool, so it compiles it as a bool and hence you get the undefined > reference during linking. > > if it would _know_ about the 3rd parameter being an int, it would > implicitely convert the "true" to 1 and everything would be fine. > > > Dirk alex2_pc:/usr/src/kde3/kdelibs/kioslave/file$ make creating kio_file_la.all_cc.cc ... source='kio_file_la.all_cc.cc' object='kio_file_la.all_cc.lo' libtool=yes \ depfile='.deps/kio_file_la.all_cc.Plo' tmpdepfile='.deps/kio_file_la.all_cc.TPlo' \ depmode=gcc /bin/sh ../../admin/depcomp \ /bin/sh ../../libtool --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../dcop -I../../libltdl -I../../kdecore -I../../kdeui -I../../kio -I../../kio/kio -I../../kio/kfile -I/usr/src/kde3/qt-copy/include -I/usr/X11R6/include -I/opt/kde3/include -D_LARGEFILE64_SOURCE -DQT_THREAD_SUPPORT -D_REENTRANT -I/opt/kde3/include -O2 -fno-exceptions -fno-check-new -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_COMPAT -c -o kio_file_la.all_cc.lo `test -f kio_file_la.all_cc.cc || echo './'`kio_file_la.all_cc.cc shouldn't find anything from KDE2. /usr/src/kde3 is a completely fresh checkout from some days ago, updated yesterday. Nevertheless it would be better to use an int when an int is required as option. I still use egcs. Bye Alex