X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConfig%2FConfig_ModuleReader.cpp;h=c533e3e3e92b69565f2a5494ee1bbdb9aeaef5d6;hb=2b4f4bf278c841500eb29bb5d204690427b0d56b;hp=0291b83b4db3039eb1fe97a22d37c8153e66bb6f;hpb=218ccacb26759956e95a7e7aa0b375fcf054ec1b;p=modules%2Fshaper.git diff --git a/src/Config/Config_ModuleReader.cpp b/src/Config/Config_ModuleReader.cpp index 0291b83b4..c533e3e3e 100644 --- a/src/Config/Config_ModuleReader.cpp +++ b/src/Config/Config_ModuleReader.cpp @@ -84,9 +84,6 @@ std::list Config_ModuleReader::importPlugin(const std::string& theP void Config_ModuleReader::loadLibrary(const std::string theLibName) { -#ifdef _DEBUG - std::cout << "Config_ModuleReader::loading library... " << theLibName.c_str() << std::endl; -#endif std::string aFileName = library(theLibName); if (aFileName.empty()) return; @@ -99,7 +96,7 @@ void Config_ModuleReader::loadLibrary(const std::string theLibName) Events_Error::send(errorMsg); } #else - void* aModLib = dlopen( aFileName.c_str(), RTLD_LAZY ); + void* aModLib = dlopen( aFileName.c_str(), RTLD_LAZY | RTLD_GLOBAL ); if ( !aModLib ) { std::cerr << "Failed to load " << aFileName.c_str() << std::endl; }