I want to compile the TMVAClassification() in my main.cc using a Makefile  but I git the error message . Is some TMVA library missing in my Makefile?
TMVAClassification(TString)': main.cc:(.text+0x979): undefined reference toTMVA::Instance()'
collect2: error: ld returned 1 exit status
Makefile:10: recipe for target ‘do.exe’ failed
make: *** [do.exe] Error 1
You need to link with
Also, consider using at least
it helps a lot, but I still have the error message . Do you know which library is missing?
undefined reference to `TMVA::TMVAGui(char const*)’
Note: you need ROOT 6.
Dear behrenhoff and Pepe,
all compile now. Thank you for your help.