author | ulf69 <ulf69> | 2004-06-30 21:52:47 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-06-30 21:52:47 (UTC) |
commit | b8957d8d6437880355312cb008addceac66e9eb2 (patch) (side-by-side diff) | |
tree | b0b65cc826e57e2466f7240ca53f703b3cf6b333 /microkde/kdecore/klibloader.cpp | |
parent | 294b21a5360fdffec72c73bd2513837f14271a01 (diff) | |
download | kdepimpi-b8957d8d6437880355312cb008addceac66e9eb2.zip kdepimpi-b8957d8d6437880355312cb008addceac66e9eb2.tar.gz kdepimpi-b8957d8d6437880355312cb008addceac66e9eb2.tar.bz2 |
added debug information in case of errors
Diffstat (limited to 'microkde/kdecore/klibloader.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | microkde/kdecore/klibloader.cpp | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/microkde/kdecore/klibloader.cpp b/microkde/kdecore/klibloader.cpp index 130cc7c..c07d50f 100644 --- a/microkde/kdecore/klibloader.cpp +++ b/microkde/kdecore/klibloader.cpp @@ -32,3 +32,7 @@ -//US #include "ltdl.h" +/*US +#ifndef NDEBUG +#include "ltdl.h" +#endif +*/ @@ -155,4 +159,4 @@ KLibFactory* KLibrary::factory() symname.sprintf("init_%s", name().latin1() ); - - void* sym = symbol( symname ); + + void* sym = symbol( symname ); if ( !sym ) @@ -160,2 +164,5 @@ KLibFactory* KLibrary::factory() qDebug("KLibrary: The library %s does not offer an %s function", name().latin1(), symname.data()); +#ifndef NDEBUG +//US qDebug("KLibrary: errorcode: %s", lt_dlerror()); +#endif kdWarning(150) << "KLibrary: The library " << name().latin1() << " does not offer an init_" << name().latin1() << " function" << endl; @@ -409,6 +416,6 @@ QString KLibLoader::findLibrary( const char * name/*US , const KInstance * insta kdDebug(150) << "library=" << libname << ": No file names " << libname.data() << " found in paths." << endl; -#endif - self()->d->errorMessage = i18n("Library files for \"%1\" not found in paths").arg(libname); + self()->d->errorMessage = i18n("Library files for \"%1\" not found in paths").arg(libname); qDebug("KLibLoader::library could not find library: %s", libname.data()); +#endif |