# SOFIE Inference in C++

**URL:** <https://root-forum.cern.ch/t/sofie-inference-in-c/56002>\
**Category:** TMVA\
**Created:** [August 11, 2023, 8:05am UTC](https://root-forum.cern.ch/t/sofie-inference-in-c/56002 "2023-08-11T08:05:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmonsoni](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/b782af/32.png) [@lmonsoni](https://root-forum.cern.ch/u/lmonsoni)\
**Post date:** [August 11, 2023, 8:05am UTC](https://root-forum.cern.ch/t/sofie-inference-in-c/56002/1 "2023-08-11T08:05:00Z")

</div>

Hi experts,  
I am trying to do a SOFIE Inference in c++ from Classification TMVA Keras Model. All work correctly but I introduce the line:  
std::vector y = s-\>infer(NN\_data.data());  
And compile I see this error:

```auto
/cvmfs/sft.cern.ch/lcg/releases/binutils/2.37-355ed/x86_64-centos7/bin/ld: /tmp/luismon8/ccYb7g42.o: undefined reference to symbol 'sgemm_'

/cvmfs/sft.cern.ch/lcg/releases/binutils/2.37-355ed/x86_64-centos7/bin/ld: /cvmfs/sft.cern.ch/lcg/releases/LCG_104/blas/0.3.20.openblas/x86_64-centos7-gcc12-opt/lib/libopenblas.so.0: error adding symbols: DSO missing from command line

```

Have you got any idea to resolve it?

Thanks.

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [August 11, 2023, 8:23am UTC](https://root-forum.cern.ch/t/sofie-inference-in-c/56002/2 "2023-08-11T08:23:29Z")

</div>

Maybe @moneta can help

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [August 23, 2023, 12:09pm UTC](https://root-forum.cern.ch/t/sofie-inference-in-c/56002/3 "2023-08-23T12:09:39Z")

</div>

Hi,

Sorry for the late reply. It is linking problem of the code, maybe the order where you specify libopenblas, the only external dependency of SOFIE. Can you please let me know how do you compile and link the code ?

Lorenzo
