root [0] TFile f = new TFile(“MyFile.root”, “READ”); // MyFile with MyNtuple
root [1] MyNtuple
(class TNtuple)0x8fc96b0
root [2] MyNtuple->SetEstimate(MyNtuple->GetEntries() + 1)
Error: Symbol MyNtuple is not defined in current scope (tmpfile):1:
Error: Failed to evaluate MyNtuple->GetEntries()
*** Interpreter error recovered ***
root [3] MyNtuple->GetEntries()
(const Long64_t)18353490
root [4] MyNtuple->SetEstimate(MyNtuple->GetEntries() + 1)
Error: Symbol MyNtuple is not defined in current scope (tmpfile):1:
Error: Failed to evaluate MyNtuple->GetEntries()
*** Interpreter error recovered ***
Hi Pepe,
This is a known (annoying) limitation of the automatic variable creation of CINT. There is no plan to fix this in the context of CINT (which is feature frozen).
Cheers,
Philippe.
Yes, it’s a long standing problem, I just got annoyed again today (well, I probably complained about it a long time ago but I forgot it).
Is this actually described somewhere?
I couldn’t find it either in http://root.cern.ch/viewvc/trunk/cint/doc/limitati.txt or in http://root.cern.ch/viewvc/trunk/cint/FAQ.txt