[RFC] bug 70936 - crash while embedding a KPart

David Faure faure at kde.org
Tue Jan 20 19:17:18 GMT 2004

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".

David FAURE, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).

More information about the kde-core-devel mailing list