Linking to functions from MathMore

Dear experts.

I encounter a problem during compile time with a program that needs to use a function from MathMore. I get an undefined reference
undefined reference to ROOT::Math::cyl_bessel_k(double, double)

Searching on the web got me to another post in the same forum, where it was suggested to explicitly add root-config -lMathMore.
However, on my system, this doesn’t solve the problem insofar as I get the error message Unknown argument -lMathMore

What am I missing here? Thanks in advance!

ROOT Version: 6.18/04
Platform: Fedora31, 64bit
Compiler: gcc 9.2.1


`root-config --libs` -lMathMore

Thanks a lot.

In our current setup, an environment variable such as:

 export ROOT_LIBRARIES=`/usr/bin/root-config --libs --evelibs --glibs`

is set up on system level. The executables are built using CMake. Since my expertise on this whole subject of linking is limited, can you probably give me a hint how to invoke the command you proposed (which I guess is for the linker)?

Your help is much appreciated.

export ROOT_LIBRARIES="`root-config --libs` -lMathMore"

Thanks, that did the trick.

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