# TMVA linker error

**URL:** <https://root-forum.cern.ch/t/tmva-linker-error/20824>\
**Category:** TMVA\
**Created:** [March 18, 2016, 8:24am UTC](https://root-forum.cern.ch/t/tmva-linker-error/20824 "2016-03-18T08:24:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sidebo](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/8e8cbc/32.png) [@sidebo](https://root-forum.cern.ch/u/sidebo)\
**Post date:** [March 18, 2016, 8:24am UTC](https://root-forum.cern.ch/t/tmva-linker-error/20824/1 "2016-03-18T08:24:43Z")

</div>

This might be a silly mistake, but I can’t resolve a linker error which seems to indicate I haven’t installed the TMVA library properly. However, I tried both binary install and my own build which should have the TMVA on top, and I successfully ran TMVA tutorials.

Compilation fails at linking stage with messages like

Undefined symbols for architecture x86\_64:  
“TMVA::Reader::AddVariable(TString const&, float\*)”, referenced from:  
TQMVAObservable::Reader::assignVariables() in TQMVAObservable.o

The makefile contains flags for compiling  
ROOTCXXFLAGS = -I$(shell $(ROOTCONFIG) --incdir) $(ADDROOTCXXFLAGS)  
and for linking  
ROOTLIBS = $(shell $(ROOTCONFIG) --libs) -lTreePlayer -lHistPainter  
ROOTLDFLAGS = $(shell $(ROOTCONFIG) --ldflags)

I’m on OSX 10.10. Any thoughts on what I might be missing here?

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [March 18, 2016, 8:32am UTC](https://root-forum.cern.ch/t/tmva-linker-error/20824/2 "2016-03-18T08:32:48Z")

</div>

Hi,

can you share the core you are trying to compile and the compilation command you are invoking so that we can reproduce it?

Danilo

---

<div class="post-metadata">

**Author:** ![sidebo](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/8e8cbc/32.png) [@sidebo](https://root-forum.cern.ch/u/sidebo)\
**Post date:** [March 18, 2016, 9:01am UTC](https://root-forum.cern.ch/t/tmva-linker-error/20824/3 "2016-03-18T09:01:30Z")

</div>

Hi Danilo,

please do  
svn co svn+ssh://@svn.cern.ch/reps/atlasoff/PhysicsAnalysis/AnalysisCommon/CAF/QFramework/trunk QFramework

cd QFramework;  
make

Edvin

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [March 18, 2016, 11:48am UTC](https://root-forum.cern.ch/t/tmva-linker-error/20824/4 "2016-03-18T11:48:31Z")

</div>

Hi,

can you reduce the problem to a simpler reproducer?  
In addition, it’s not possible for me to checkout svn: E170001: Authorization failed .

Danilo
