Re: TROOT problem with "Example of a Minimization program"

From: Fons Rademakers (rdm@pcsalo.cern.ch)
Date: Thu Sep 09 1999 - 17:36:07 MEST


Hi Johann,

   the examples in $ROOTSYS/test should be compiled using the Makefile.
The examples in $ROOTSYS/tutorials can be run in the
interpreter (like you were trying to do).

Cheers, Fons.


> Hi Rooters,
> 
> I am new to ROOT and I have a problem with the "Example of a Minimization 
> program".
> I tried a few other examples with TROOT objects and the results are always the 
> same. The error message is as following:
> 
>   *******************************************
>   *                                         *
>   *        W E L C O M E  to  R O O T       *
>   *                                         *
>   *   Version   2.21/08     18 March 1999   *
>   *                                         *
>   *  You are welcome to visit our Web site  *
>   *          http://root.cern.ch            *
>   *                                         *
>   *******************************************
> 
> CINT/ROOT C/C++ Interpreter version 5.13.92, Mar 13 1999
> Type ? for help. Commands must be C++ statements.
> Enclose multiple statements between { }.
> root [0] .includepath /opt/local/root/include
> root [1] .L /usr/local/root/test/minexam.cxx 
> root [2] main()
> Error: Can't call TROOT::TROOT() in current scope FILE:/usr/local/root/test/min
> exam.cxx LINE:43
> Possible canditates are...
> filename       line:size busy function type and name
> *** Interpreter error recovered ***
> root [3] 
> 
> 
> I think there is an easy solution, but I can't find my mistake.
> 
> Thanks in advance,
> Johann
> 


-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7677910



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:39 MET