Home REAS REAS FAQ I get lots of "undefined reference" messages relating to ROOT libraries when compiling REAS2.58.
I get lots of "undefined reference" messages relating to ROOT libraries when compiling REAS2.58. PDF Print E-mail
Written by Tim Huege   
Wednesday, 02 April 2008 14:18

Unfortunately, the inclusion of the ROOT libraries is somewhat "quick'n'dirty" in REAS2.58. When the ROOT programmers reorganise their libraries, compiling REAS 2.58 may fail.

As of REAS2.59, this issue is fixed. I recommend that you update. 

Alternatively, you can use the following hotfix to compile REAS 2.58. You will need to have the GNU autotools and libtool installed on your system.

Please execute the command root-config --glibs. This will give you a line looking like this: -L/usr/local/root/lib -lCore -lCint -lRIO -lNet -lHist -lGraf ...

Please copy all the entries starting with -l into a text file, in the correct order. (Please leave out anything starting differently from -l such as -L, -p or -r.)

Then open the files reas/Makefile.am and reasplot/Makefile.am and in the entries called reas_LDADD and reasplot_LDADD, respectively, add any -l entries that are missing here but are present in the text file you created above, again retaining the order.

Afterwards, in the REAS main directory, please execute make distclean , followed by autoreconf -ivf and finally ./configure CXXFlags=-O3 and make.

REAS should now compile fine.

Last Updated on Tuesday, 08 April 2008 11:29