Ok, I was able to compile libbPEMPos.so
library (I was need to get rid of ifdef
guard for ClassDef
) but now I get error when linking my test program:
g++ -I/usr/include/root -std=c++14 -L/usr/lib/root -lTree -lRIO -lCore -L. -lbPEMPos -o test_geom test_geom.cxx
./libbPEMPos.so: In function `bPEMPos::bPEMPos()':
/home/vladimir/baikal-gvd/root/bPEMPos.cxx:3: undefined reference to `vtable for bPEMPos'
collect2: error: ld returned 1 exit status
make: *** [Makefile:14: test_geom] Error 1
Some topics on the forum were mentioned LinkDef.h
header file with some #pragma
's, should I make such file? According to FAQ (https://root.cern.ch/faq/how-generate-dictionary) I need to use rootcling
to generate dictionary but I’m using genreflex
. I’m a bit lost here, should I use genreflex
or should I use rootcling
?
WBR, Vladimir Lomov