Re: Error: No memory for static ...

From: Roger Mason <rmason_at_esd.mun.ca>
Date: Fri, 3 Oct 2008 15:05:52 -0230


Philippe Canal <pcanal_at_fnal.gov> writes:

> Handling of static variable is one of the current weakness in CINT.
> To work around the problem simply use this alternative ordering of the code:
> (or use ACLiC).
>
> void read_tree_minimal()
> {
> static Double_t energy;
>
> TFile *f = new TFile("Ca1Mn47d.lowsanidined.20080506.135053.root");
> return;
> }

Thank you Philippe. That works.

Cheers,
Roger Received on Fri Oct 03 2008 - 19:45:16 CEST

This archive was generated by hypermail 2.2.0 : Fri Oct 03 2008 - 23:50:02 CEST