#include <iostream>
#include <dlfcn.h>
#include "MdcTrkRecon/MdcSegPatterns.h"
Go to the source code of this file.
◆ main()
Definition at line 5 of file Reconstruction/MdcPatRec/MdcTrkRecon/MdcTrkRecon-00-03-49/test/test.cxx.
5 {
6 using std::cout;
7 using std::cerr;
8
9 cout << "C++ dlopen demo\n\n";
10
11
12 cout << "Opening MdcTrkRecon.so...\n";
13 void* handle = dlopen("../rh73_gcc32/libMdcTrkRecon.so", RTLD_LAZY);
14
15 if (!handle) {
16 cerr << "Cannot open library: " << dlerror() << '\n';
17 return 1;
18 }
19
21 for(int j=0;j<20;j++)std::cout<<pat.patt3[j]<<" "<<j<<std::endl;
22 for(int i=0;i<256;i++){
23 std::cout<<pat.npatt4[i]<<" "<<pat.npatt3[i]<<" "<<i<<std::endl;
24 }
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41 cout << "Closing library...\n";
42 dlclose(handle);
43}