NumericalMinimization.C crashes in 6.18

When I try to run NumericalMinimization.C using

>root NumericalMinimization.C

I get the error:

Error in <HandleInterpreterException>: Trying to dereference null pointer or trying to call routine taking non-null arguments.

Execution of your code was aborted.

In file included from input_line_9:1:

tmp/NumericalMinimization.C:55:4: warning: null passed to a callee that requires a non-null argument [-Wnonnull]

minimum->SetMaxFunctionCalls(1000000); // for Minuit/Minuit2

I am running this on a Mac OS 10.14.5.

Any ideas?


Try to use e.g.: minName = "Minuit"

It seems that your ROOT binaries are cut down and are missing “Minuit2”.
Try: root-config --features

Yes, indeed minuit2 was missing. Works now. Thanks for the info.

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