Minuit2 compilation problem


I have a strange problem when trying to write minuit2 function to implement my own fits.
I simply follow the documentation with deriving a class from FCNBase, then when I include that class into my class derived from TNamed the dictionary generator (rootcint) gives me the following error message (in the bottom),
Though when I do not derive the class from TNamed and compile it works,
Can someone, please, help ? I attached a tarball with two classes that give this error message ! :

ERROR from rootcint
Error: abstract class object ‘GooFcnMinimizer fMinimizer’ declared GooAbsFitter.h:16:
Internal warning: fMinimizer comment can not set GooAbsFitter.h:16:
Warning: Error occurred during reading source files
Warning: Error occurred during dictionary source generation
!!!Removing GooAbsFitterDict.cc GooAbsFitterDict.h !!!
Error: /Users/gavalian/Software/root-5.24/bin/rootcint: error loading headers…
make: *** [GooAbsFitterDict.cc] Error 1
minimizer.tar.gz (1.32 KB)

yor class, GooFcnMinimizer, needs to impelment the abstract methods defined in FCNBase :

virtual double operator()(const std::vector<double>& x) const;

virtual double Up() const;

otherwise it is an abstract class and you cannot use it by value as data member inside GooAbsFitter

Best Regards