summaryrefslogtreecommitdiffabout
path: root/microkde/kdecore/klibloader.cpp
Side-by-side diff
Diffstat (limited to 'microkde/kdecore/klibloader.cpp') (more/less context) (show whitespace changes)
-rw-r--r--microkde/kdecore/klibloader.cpp11
1 files changed, 9 insertions, 2 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
+*/
@@ -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,3 +416,2 @@ 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);
@@ -413,2 +419,3 @@ QString KLibLoader::findLibrary( const char * name/*US , const KInstance * insta
qDebug("KLibLoader::library could not find library: %s", libname.data());
+#endif