Re: [ROOT] Compiling a C++ Program containing CMinuit

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Dec 13 2002 - 00:02:24 MET


Hi Steffen,

You should link with -lMinuit

Rene Brun

On Thu, 12 Dec 2002, Steffen Grohmann wrote:

> Hello,
>  
> I am trying to compile a C++ source file that contains a Minuit object
> in order to debugg a complex fitting algorithm. Although I have included
> the path for the ROOT objects, I always get a compiler error like:
>  
> ../File.cc:70: undefined reference to 'TMinuit::TMinuit(int)'
>  
> where (in this example line 70) contains the inizialization of the
> object:
>  
> TMinuit *gMinuit = new TMinuit(5);  (like in the Ifit.C tutorial).
>  
> Could you please tell me what is wrong with the syntax?
>  
> Thanks, Steffen
>  
>  
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:23 MET