Correct linking of the ROOT::Math

Hello, rooters!
I’m trying to create a shared library with usage of ROOT::Math::legendre function. Compilation goes well, but when I try to call function which execute calculation with legendre, an error connected with linking arises. What I should add to Makefile to fix it?
Minimal code is attached.
LegendreProblem.zip (50.0 KB)

ROOT Version: 6.24/02
Platform: x86-64
Compiler: g++


Try:

ROOTLIBS = `root-config --glibs` -lMathMore

Hi,

you need to include libMathMore.so to the list of linked libraries. In your Makefile do:

ROOTLIBS = `root-config --glibs` -lMathMore

Cheers,

Lorenzo

Many thanks!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.