Hi Jarek, this is a known problem in 0.9 which is fixed in 1.0beta. The system gets confused by the . in the string and tries to incorrectly strip off the file name extension. Doing: .L plot.C plot("test.root") should work. Cheers, Fons. Jarek Grebieszkow wrote: > > Hi, > short problem: > I have the following macro: > > void plot(Char_t *fname) > { > printf("%s\n",fname); > } > > and > > root [0] .x plot.C("test"); > test > NULL > root [1] > > works but with different parameter: > > root [1] .x plot.C("test.root"); > Syntax error: G__getexpr: Parenthesis or quotation unmatch plot.C("test() > FILE: LINE:0 > NULL > root [2] > > where is the problem ? > > Jarek -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland Phone: +41 22 7679248 E-Mail: Fons.Rademakers@cern.ch Fax: +41 22 7822601
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:18 MET