ROOT and Mathematica

Dear Rooters,

I posted recently a question on Mathematica function minimization within ROOT.
I was referred to root.cern.ch/root/HowtoMathematica.html for how to do this.
The page is very clear and, as a matter of fact, the final root application works
nicely with Mathematica 5.0.

However, I need now to call from within ROOT a Mathematica 5.2 function.
I tried to do the same job as described in the link above, but when I compile
the final “rootmath52” application, I got some errors, and compilation fails.
Please find in attachment the output of the compiler.

My g++ version is:
g++ (GCC) 4.0.2 20050901 (prerelease) (SUSE Linux),
and I have SUSE 10.0.
Do I need to upgrade any lib to have rootmath52 compiled???

Many thanks in advance,
dg
g++.txt (2.88 KB)

It looks like you should add -lpthread to your link sequence

Rene

Dear Rene,

thank you very much. It works perfectly!

I would suggest to add this tip on the
(already very clear) page
root.cern.ch/root/HowtoMathematica.html

Ciao,
dg

Done

Rene