Changeset 7169 in orxonox.OLD for branches/shared_lib/src/util/loading/dynamic_loader.cc
- Timestamp:
- Feb 19, 2006, 6:35:31 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/shared_lib/src/util/loading/dynamic_loader.cc
r7167 r7169 30 30 */ 31 31 DynamicLoader::DynamicLoader (const std::string& libName) 32 : Factory(NULL, CL_NULL)33 32 { 34 33 this->setClassID(CL_DYNAMIC_LOADER, "DynamicLoader"); … … 62 61 } 63 62 64 bool DynamicLoader::loadDyLib(const std::string&libName)63 bool DynamicLoader::loadDyLib(const char* libName) 65 64 { 66 65 void* handle; 67 handle = dlopen( &libName[0], RTLD_NOW);66 handle = dlopen(libName, RTLD_NOW); 68 67 if(handle == NULL) 69 68 { 70 PRINTF(0)("unable to load %s\n", &libName[0]); 69 PRINTF(1)("unable to load %s: %s\n", libName, dlerror()); 70 71 71 return false; 72 72 }
Note: See TracChangeset
for help on using the changeset viewer.