Module: $RCSfile: bbtkFactory.cxx,v $
Language: C++
-Date: $Date: 2008/07/01 07:58:28 $
-Version: $Revision: 1.37 $
+Date: $Date: 2008/10/02 12:29:26 $
+Version: $Revision: 1.39 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
#include <cctype> // std::toupper
+#include <time.h>
namespace bbtk
{
if (ok)
{
bbtkMessage("debug",2," OK"<<std::endl);
- break; // a package was found; we stop iterating
}
+ break; // we stop iterating even if error : have to signal it to user
} //------------------ // end for ( package_paths.begin();i!=package_paths.end() )
}
{
#if defined(__GNUC__)
bbtkError("Could not load package ["<< pkgname
- <<"] :" << std::endl << " " << dlerror());
+ <<"] :" << std::endl
+ << " Opening "<<libname<<" failed"
+ << " Reason: "<< dlerror());
#elif defined(_WIN32)
bbtkError("Could not load package ["<<pkgname
- <<"] : " << std::endl << " " <<libname<<" not found");
+ <<"] :"<< std::endl << " Error loading " <<libname);
// look how to get the error message on win
//<<dlerror());