Re: undefined symbol: __pure_virtual

niraj.kumar.ait_at_gmail.com
Date: 08/30/05


Date: 30 Aug 2005 03:47:06 -0700

Here tab is the object of Soloader object I m calling the below line
from a different file

 SoLoader tab("../lib/libApache.so");
 tab.LoadSo();

and in soloader file I have the following code

bool SoLoader::LoadSo(){
  mHandle = dlopen(mSoPath.c_str(),RTLD_NOW); //Load Shared Object

  std::cout<<"here is the handle-->"<<mHandle<<std::cout<<endl;

  if(!mHandle){
    std::cout<<"Error in loading shared obj"<<std::endl;
    mErrorMessage = dlerror();
    return false;
  }

}

mHandle doesnt load the shared obj it gives following output

here is the handle-->(nil)0xffffffff
Error in loading shared obj