Re: same file name(minus extension) and fun. entry point/Re: how can I use dialogs on Windows95?

Rene Brun (Rene.Brun@cern.ch)
Wed, 16 Jun 1999 12:53:43 +0000


Hi Nobu,
This small macro works correctly on Windows95, etc.
You can do the following;
Root > .L macro3.C
Root > macro3()
or
Root > .x macro3.C

Rene Brun

Nobuyuki Hikichi wrote:
>
>
> I have another question for same file name(minus extension) and function
> entry point on Windows95.
>
> page 24 in http://root.cern.ch/root/course*.ps.gz has a example for
> same file name(minus extension) and function entry point.
>
> On windows95, I cannot run this example.
> Should I need to check more like the environment value to run?
>
> Here is a simpler case.
>
> <<macro3.C>>
> int macro3(int j =10)
> {
> return j * j;
> }
>
> root [0] macro3()
> Error: No symbol macro3() in current scope FILE:C:\WINDOWS\TEMP\53 LINE:1
> *** Interpreter error recovered ***
> root [1] macro3(3)
> Error: No symbol macro3(3) in current scope FILE:C:\WINDOWS\TEMP\53 LINE:1
> *** Interpreter error recovered ***
>
> -- Nobu
> Name: Nobuyuki Hikichi <hikichi@sra.co.jp>
> Office: Software Research Associates, Inc., Japan.