Problem when compiling (lRootFitCore)

Hello everybody!

I have a problem when compiling my code. I think the problem is the compilation command.
I have tried with the line:

c++ -o Es3_roofit Es3_roofit.cpp `root-config --cflags --ldflags --glibs` -lRooFit -lMinuit -lRootFitCore

However, the output is:

/usr/bin/ld: cannot find -lRootFitCore 

If I do not put -lRootFit, I get a lot of errors, so I think it must be put.
Someone can help me, please?

-lRooFit -lRooFitCore

1 Like

Yes, there is a typo. I would advise to change the order, though:

-lRooFitCore -lRooFit 

And possibly also
-lRooStats -lHistFactory if you use one of these.

1 Like

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