1 #include <cppunit/Portability.h>
3 #if defined(CPPUNIT_HAVE_UNIX_DLL_LOADER)
4 #include <cppunit/plugin/DynamicLibraryManager.h>
13 DynamicLibraryManager::LibraryHandle
14 DynamicLibraryManager::doLoadLibrary( const std::string &libraryName )
16 return ::dlopen( libraryName.c_str(), RTLD_NOW | RTLD_GLOBAL );
21 DynamicLibraryManager::doReleaseLibrary()
23 ::dlclose( m_libraryHandle);
27 DynamicLibraryManager::Symbol
28 DynamicLibraryManager::doFindSymbol( const std::string &symbol )
30 return ::dlsym ( m_libraryHandle, symbol.c_str() );
35 DynamicLibraryManager::getLastErrorDetail() const
44 #endif // defined(CPPUNIT_HAVE_UNIX_DLL_LOADER)