Compiled multilayerperceptron

I’m trying to use a multilayerperceptron in a compiled program - it compiles fine my problem is linking. At first it was telling me undefined reference to the TMLP, I noticed -lMLP was not included in root-config --libs so I added it to the command line. Now it is reporting an undefined reference to TTreeformula functions. My question therefore would be:

a. what library is TTreeformula in?

b. is it possible to compile code using the MLP package? (I’m suspicious of it not being an option in root-config.

Thanks again

Chris

Chris,

You can extend root-config defaults, eg

root-config --cflags --glibs -lMLP

Rene

Thanks, but my problem is after using root-config --cflags --glibs -lMLP:

/root_v4_02_00/root/lib/libMLP.so: undefined reference to TTreeFormula::TTreeFormula[in-charge](char const*, char const*, TTree*)' /root_v4_02_00/root/lib/libMLP.so: undefined reference toTTreeFormulaManager::TTreeFormulaManagerin-charge
collect2: ld returned 1 exit status

If you build your own executable add -lTreePlayer

You can look at the file $ROOTSYS/etc/system.rootmap.
If your installation is correct, you should have this file.
You can see there the correspondance and dependencies of classes and
shared libs.

If you do not have the file, run
cd $ROOTSYS
make map

Rene

Thanks for the help it works perfectly now. I always wondered where I could find out what was in which library - very useful.