Hello,
I’m trying to use a TTreeFormula in a C++ program using root 6.00/00 librairies. But if I try to compile this simple dummy program:
UseTTreeFormula.C (106 Bytes)
using the following line (I have gcc 4.8.2):
g++ UseTTreeFormula.C -o UseTTreeFormula `root-config --cflags` `root-config --libs`
I obtain:
/tmp/ccf6ZiIN.o: In function `main':
UseTTreeFormula.C:(.text+0x1c): undefined reference to `TTreeFormula::TTreeFormula()'
collect2: erreur: ld a retourné 1 code d'état d'exécution
I solved the problem by addind -lTreePlayer:
g++ UseTTreeFormula.C -o UseTTreeFormula `root-config --cflags` `root-config --libs` -lTreePlayer
So, would it be possible to add -lTreePlayer in the root-config --libs and root-config --glibs scripts for the future releases?
Thanks,
Timothée