RE: [ROOT] TMinuit and ACLIC

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Sat Jul 17 2004 - 00:27:24 MEST


I've re-added the default loading of TMinuit in root.exe, for backward
compatibility, but best is of course to access the fitter through the
abstract interface which is there exactly for this purpose.

Cheers, Fons.




On Fri, 2004-07-16 at 16:24, Philippe Canal wrote:
> Hi,
> 
> In ROOT 4.00/08, you have to first call
> 	gSystem->Load("libMinuit");
> Cheers,
> Philippe.
> 
> -----Original Message-----
> From: owner-roottalk@pcroot.cern.ch
> [mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Richard S. Holmes
> Sent: Thursday, July 15, 2004 2:01 PM
> To: roottalk@pcroot.cern.ch
> Subject: [ROOT] TMinuit and ACLIC
> 
> 
> Is there an issue in recent versions of ROOT with compiling macros
> that use TMinuit?  In ROOT version 4.00/08 (compiled for Red Hat 7.3
> Linux with gcc 2.96 -- yes, I know, but that's the version of gcc I'm
> stuck with for now) if I load Ifit.C from the ROOT tutorials using
> 
>   .L Ifit.C
> 
> it loads and works fine; but if I do
> 
>   .L Ifit.C+
> 
> I get:
> 
> Info in <TUnixSystem::ACLiC>: creating shared library /auto/mepdisk/src/happex/pan/./macro/Ifit_C.so
> In file included from /auto/mepdisk/src/happex/pan/macro/file8CNeo4.h:29,
>                  from /auto/mepdisk/src/happex/pan/./macro/file8CNeo4.cxx:13:
> /auto/mepdisk/src/happex/pan/./macro/Ifit.C: In function `void fcn (Int_t &, Double_t *, Double_t &, 
> Double_t *, int)':
> /auto/mepdisk/src/happex/pan/./macro/Ifit.C:27: warning: unused parameter `Int_t &npar'
> /auto/mepdisk/src/happex/pan/./macro/Ifit.C:27: warning: unused parameter `Double_t *gin'
> /auto/mepdisk/src/happex/pan/./macro/Ifit.C:27: warning: unused parameter `Int_t iflag'
> dlopen error: /auto/mepdisk/src/happex/pan/./macro/Ifit_C.so: undefined symbol: __7TMinuiti
> Load Error: Failed to load Dynamic link library /auto/mepdisk/src/happex/pan/./macro/Ifit_C.so
> In file included from /auto/mepdisk/src/happex/pan/macro/file8CNeo4.h:29,
>                  from /auto/mepdisk/src/happex/pan/./macro/file8CNeo4.cxx:13:
> /auto/mepdisk/src/happex/pan/./macro/Ifit.C: In function `void fcn (Int_t &, Double_t *, Double_t &, 
> Double_t *, int)':
> /auto/mepdisk/src/happex/pan/./macro/Ifit.C:27: warning: unused parameter `Int_t &npar'
> /auto/mepdisk/src/happex/pan/./macro/Ifit.C:27: warning: unused parameter `Double_t *gin'
> /auto/mepdisk/src/happex/pan/./macro/Ifit.C:27: warning: unused parameter `Int_t iflag'
> /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o: In function `_start':
> /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o(.text+0x18): undefined reference to `main'
> /auto/mepdisk/src/happex/pan/./macro/file8CNeo4.o: In function `Ifit(void)':
> /auto/mepdisk/src/happex/pan/./macro/file8CNeo4.o(.text+0x285): undefined reference to `TMinuit::TMinuit(int)'
> collect2: ld returned 1 exit status
> *** Interpreter error recovered ***
> root [1] 
> 
> These errors do NOT arise if I do ".L Ifit.C+" in ROOT version
> 3.05/07.  Similar problems arise with a macro of my own that uses
> TMinuit, again in version 4.00/08 but not in 3.05/07.
-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://www.rademakers.org/fons/      Fax:   +41 22 7679480



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:08 MET