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

List:       kde-core-devel
Subject:    Re: kdebug
From:       Mirko Sucker <mirko.sucker () unibw-hamburg ! de>
Date:       2000-02-08 22:04:33
[Download RAW message or body]

Stephan Kulow wrote:
> 
> Hi!
> 
> Does noone get this error?
> 
> /home/coolo/prod/kdebase/kcontrol/syssound/syssound.cpp: In method `void
> KSoundWidget::eventSelected(int)':
> /home/coolo/prod/kdebase/kcontrol/syssound/syssound.cpp:301: call of
> overloaded `kDebugInfo (const char[24], int &, const char *)' is
> ambiguous
> /home/coolo/prod/KDE/include/kdebug.h:70: candidates are: void
> kDebugInfo(const char *, ...)
> /home/coolo/prod/KDE/include/kdebug.h:72:                 void
> kDebugInfo(bool, short unsigned int, const char *, ...)
> 
> The use is:
> kDebugInfo("event %d wants sound %s", index, debugString(*sname));
> 
> I wonder, why the compiler would take "event ..." as bool, but what
> do I know ? :)
This is an egcs specific problem. I encountered it once before, where
egcs chose a char* to be a bool for two overloaded methods. I always
thought the GNU compilers use real bools, not integers?
Greetings,
--Mirko.
-- 
Denn der  Mensch  liebt und ehrt den  Menschen,  solange er ihn
nicht zu beurteilen vermag, und die Sehnsucht ist ein Erzeugnis
mangelhafter Erkenntnis. (Thomas Mann)

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

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