I am compiling ROOT with a Makefile and I have run some problems.
First, I believe I need to add a linker to use the vector container.
I did this following the instructions at the bottom of this page:
root.cern.ch/drupal/content/inte … s-rootcint
with a Linkdef.h which contains
#pragma link C++ class vector+;
After I tried compiling with the modified makefile, I got the message:
relocation R_X86_64_32 against `a local symbol’ can not be used when making a shared object; recompile with -fPIC
After adding the option -fPIC into my make file, it the code compiled.
However, when I run the code, I get the message:
./test: error while loading shared libraries: reader.o: cannot open shared object file: No such file or directory
Does anybody know the solution to this problem?