[RFC] bug 70936 - crash while embedding a KPart

Christian Loose christian.loose at hamburg.de
Tue Jan 20 20:03:47 GMT 2004


Am Dienstag, 20. Januar 2004 20:17 schrieb David Faure:
> On Tuesday 20 January 2004 20:10, Christian Loose wrote:
> > both Cervisia and Quanta have a class named TagDialog.
>
> Hmm, I thought that as long as we don't use KLibLoader::globalLibrary()
> (AFAICS we don't), the symbols from dlopened objects are kept separate?
> Strange. Anyway, this (not using global namespace) prevents
> dynamic_cast'ing across dlopened objects, so the plan is to go for global
> namespace in the long run (i.e. conflicts when the same name is used for
> two different things, like
>
> you just experienced). So:
> > - does somebody have an idea for a global solution?
>
> Use namespaces!
>
> CervisiaTagDialog or Cervisia::TagDialog, but make all classnames
> (and global functions, if any) "conflict-free".

Thanks David and Holger,

That's what I suspected too. I just thought that there might be another 
solution (not that namespace are bad :-)).

At least this case is documented now, so that somebody else might not have to 
debug for 4 days just to find out that it is a name conflict. ;-)

Bye
Christian





More information about the kde-core-devel mailing list