Re: running macros

From: Volker Boerchers (boercher@physik.uni-bremen.de)
Date: Tue Nov 16 1999 - 09:34:26 MET


Hi Philip,

> Hello. I have what is sure to be a very stupid question but it is driving
> me nuts...I am trying to run the macro for Tutorial #16 - fitting
> background and signal and it will only run if I name the macro backsig.C
> or backsig.c.  Any other filename produces the error:
> 
> root [1] .X 'filename.C'
> Error: No symbol 'filename'() in current scope  FILE: LINE:0

but this works:
 root [0] .L filename.C 
 root [1] backsig()

When executing a file `f.XX' containing functions (not a single macro)
root expects a function `f()' in the file and tries to execute it.

Regards,
  Volker

::.::::.::::.::::.::::.::::.::::.::::.::::.::::.::::.::::.::::.::::.::
Volker B"orchers, Uni Bremen, NW1, Raum 03160, Tel. +49-421-218-4522
 mailto:boercher@physik.uni-bremen.de



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