19 #include <SharedLibrary.h> 23 #include <momemta/Logging.h> 25 SharedLibrary::SharedLibrary(
const std::string& path) {
26 m_handle = ::dlopen(path.c_str(), RTLD_LAZY | RTLD_LOCAL);
28 LOG(error) <<
"Failed to open '" << path <<
"': " << dlerror();
32 SharedLibrary::~SharedLibrary() {
33 if (m_handle !=
nullptr)