Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 19, 2006, 6:35:31 PM (19 years ago)
Author:
bensch
Message:

shared_lib: some functionality

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/shared_lib/src/util/loading/dynamic_loader.cc

    r7167 r7169  
    3030*/
    3131DynamicLoader::DynamicLoader (const std::string& libName)
    32     : Factory(NULL, CL_NULL)
    3332{
    3433  this->setClassID(CL_DYNAMIC_LOADER, "DynamicLoader");
     
    6261}
    6362
    64 bool DynamicLoader::loadDyLib(const std::string& libName)
     63bool DynamicLoader::loadDyLib(const char* libName)
    6564{
    6665  void* handle;
    67   handle = dlopen(&libName[0], RTLD_NOW);
     66  handle = dlopen(libName, RTLD_NOW);
    6867  if(handle == NULL)
    6968  {
    70     PRINTF(0)("unable to load %s\n", &libName[0]);
     69    PRINTF(1)("unable to load %s: %s\n", libName, dlerror());
     70
    7171    return false;
    7272  }
Note: See TracChangeset for help on using the changeset viewer.