27 #if defined(__APPLE__)
81 std::cerr <<
"Dynamic library with name " << symbName <<
_extForDynLib;
82 std::cerr <<
" not existing in paths specified" << std::endl;
96 char *message=dlerror();
99 std::string error =
"Error while trying to load library with name " + fullLibName +
100 " with the following internal message: " + message;
126 char *message=dlerror();
127 if(stopOnError && (NULL != message))
129 std::string error=
"Error detected on symbol ";
130 error=error+symbName +
" search in library with name "+
_libName+
_extForDynLib+
" with the following internal message "+message;
int appendDirInSearchPath(const std::string &dirName)
std::string getLibNameWithoutExt() const
int removeDirInSearchPath(const std::string &dirName)
DynLibLoaderGNU(const std::string &libNameWithoutExtension)
void * _handleOnLoadedLib
void * resolveSymb(const std::string &symbName, bool stopOnError)
load lib without regarding that _libName is reachable
void * getHandleOnSymbolWithName(const std::string &symbName, bool stopOnError=true)
bool isLibFileFindable() const
static const char * getExtensionForDynLib()
static const char _extForDynLib[]