#include #include "test.h" #include #include class loadunload{ public: void* load(char *p,test *&); void unload(void *,test *&); }; typedef test* (*EP)(); void* loadunload::load(char *p,test *&t){ char *error=NULL; void *handle=dlopen(p,RTLD_GLOBAL|RTLD_LAZY); if(!handle){ error=dlerror(); cerr<<"ERROR:dlopen "<registerr(); cout<tm.p<tm.p<unregisterr(); dlclose(handle); } int main(){ loadunload l; test *t1; test *t2; cout<<"Loading two libraries..."<