#include <iostream>
#include <dlfcn.h>
#include "MdcData/MdcHit.h"
Go to the source code of this file.
◆ main()
Definition at line 6 of file Reconstruction/MdcPatRec/MdcData/MdcData-00-01-27/test/test.cxx.
6 {
7 using std::cout;
8 using std::cerr;
9
10 cout << "C++ dlopen demo\n\n";
11
12
13 cout << "Opening MdcData.so...\n";
14 void* handle = dlopen("../rh73_gcc32/libMdcData.so", RTLD_LAZY);
15
16 if (!handle) {
17 cerr << "Cannot open library: " << dlerror() << '\n';
18 return 1;
19 }
20
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39 cout << "Closing library...\n";
40 dlclose(handle);
41}