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. (50.0 KB)

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


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


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

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



Many thanks!

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