Fix warnings and errors in ampi_noimpl.C
[charm.git] / src / util / ckdll_dlopen.C
blobea451a89d1978f02264404144ef5732d51024a1d
1 /*
2  dlopen version of CkDll class.  
3  This file can be #included whole by the configure script or ckdll.C.
5  Orion Sky Lawlor, olawlor@acm.org, 9/10/2002
6 */
7 #include "ckdll.h"
8 #include <unistd.h> //For unlink
9 #include <dlfcn.h> //for dlopen, etc.
11 CkDll::CkDll(const char *name) {
12         handle=dlopen(name,RTLD_NOW);
14 void *CkDll::lookup(const char *name) {
15         return dlsym(handle,name);
17 CkDll::~CkDll() {
18         dlclose(handle);
21 const char *CkDll::extension=".so";