TMVAClassification.C file giving error messages


I am having troubles to get the TMVAClassification.C file that is on root’s webpage to work. I am receiving the following error message(s):

error: no member named ‘AddVariable’ in ‘TMVA::Factory’

error: no matching member function for call to ‘BookMethod’

error: use of undeclared identifier ‘factory’

Someone had posted a similar topic in these forums titled:
“Problem with TMVA package. Factory methods are not known”

I am not exactly sure what he did to fix his errors.

I am running the following:

| Welcome to ROOT 6.12/06 |
| © 1995-2017, The ROOT Team |
| Built for linuxx8664gcc |
| From tag v6-12-06, 9 February 2018 |

Try ‘.help’, ‘.demo’, ‘.license’, ‘.credits’, ‘.quit’/’.q’


You are probably using an old version of the TMVAClassification file. Could you let me know where you found it?

An up to date version should exist on your local machine at $ROOTSYS/tutorials/tmva where $ROOTSYS is the path to you root installation. It can also be found though our github page here.