# TMVAClassification.C file giving error messages

**URL:** <https://root-forum.cern.ch/t/tmvaclassification-c-file-giving-error-messages/29714>\
**Category:** TMVA\
**Created:** [July 10, 2018, 1:45am UTC](https://root-forum.cern.ch/t/tmvaclassification-c-file-giving-error-messages/29714 "2018-07-10T01:45:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aliciakelley97](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/e47774/32.png) [@aliciakelley97](https://root-forum.cern.ch/u/aliciakelley97)\
**Post date:** [July 10, 2018, 1:45am UTC](https://root-forum.cern.ch/t/tmvaclassification-c-file-giving-error-messages/29714/1 "2018-07-10T01:45:32Z")

</div>

Hi,

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 [http://root.cern.ch](http://root.cern.ch) |  
| © 1995-2017, The ROOT Team |  
| Built for linuxx8664gcc |  
| From tag v6-12-06, 9 February 2018 |

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

---

<div class="post-metadata">

**Author:** ![kialbert](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/kialbert/32/16537_2.png) [@kialbert](https://root-forum.cern.ch/u/kialbert)\
**Post date:** [July 11, 2018, 9:27am UTC](https://root-forum.cern.ch/t/tmvaclassification-c-file-giving-error-messages/29714/2 "2018-07-11T09:27:43Z")

</div>

Hi,

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](https://raw.githubusercontent.com/root-project/root/master/tutorials/tmva/TMVAClassification.C).

Cheers,  
Kim
