After successful compilation of ROOT, I tried compiling my code, all of which seems to be fine except for when I want to use TTreeFormula when I get a linker error.
For example if my code is as attached, and I make (with -lTreePlayer), I get the following error:
Undefined symbols for architecture x86_64:
"double TTreeFormula::EvalInstance<double>(int, char const**)", referenced from:
_main in aaa.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/Users/scphall/work/inflaton/selection/bin/aaa] Error 1
What am I missing?