50 open(dict, libsEntry);
67 if (functionLibName.size())
69 void* functionLibPtr = NULL;
87 functionLibPath = *pathI / functionLibName;
89 functionLibPath = functionLibName;
90 functionLibPtr = dlopen(functionLibPath.c_str(), RTLD_LAZY|RTLD_GLOBAL);
93 if(!functionLibPtr && functionLibPath.
ext()==
"so") {
94 functionLibPath=functionLibPath.
lessExt()+
".dylib";
96 dlopen(functionLibPath.c_str(), RTLD_LAZY|RTLD_GLOBAL);
102 Info<<
"Loaded " << functionLibName;
104 Info<<
" from the default search path";
106 Info<<
" from " << functionLibPath;
115 "dlLibraryTable::open(const fileName& functionLibName)"
116 ) <<
"could not load " << dlerror()
123 if (!loadedLibraries.found(functionLibPtr))
125 loadedLibraries.insert(functionLibPtr, functionLibName);
144 const word& libsEntry
147 if (dict.
found(libsEntry))
151 bool allOpened = (libNames.size() > 0);