Hello,
I have created a shared library for the class which implements the FCN minimization function (Decmass222Fcn below), to use with Minuit2. After loading the library and execute my macro within ROOT, i get an error for the FCN class member function:
virtual double operator() (const std::vector& ) const;
Inside the macro, I instantiate theFcn object as:
[code]Decmass222Fcn *theFcn = new Decmass222Fcn(smmasses, endpoints, endptsind);
// blabla
std::vector theParameters;
double chi2;
theParameters.push_back(mss[0]);
theParameters.push_back(mss[1]);
theParameters.push_back(mss[2]);
theParameters.push_back(mss[3]);
chi2 = theFcn->operator()(theParameters);
[/code]
and the error I get is:
Error: operator()() header declared but not defined
In addition, there is a warning for missing dictionary for the class ROOT::Minuit2::GenericFunction.
Is the error related with this warning? And what am I doing wrong?
Thank you very much!
Georgia