Error in <TClass::LoadClassInfo>: no interpreter information for class TKey is available even though it has a TClass initialization routine

Hello,
I am trying to run a simple analysis compiled with a Makefile, but when I open a TFile, I get “Error in TClass::LoadClassInfo: no interpreter information for class TKey is available even though it has a TClass initialization routine”.
I have reduced the files to the minimum to make it easier to debug.
The strange thing is that, if I uncomment the lines

// TH1D*h = new TH1D(“h”,“h”,200,0,200);
// for (int i = 0;i<100;i++) h->SetBinContent(i+1, i+1);
// h->Write();
// f->Close();

then no error is given…
Could anyone give a look and tell me what the problem is, please?
(analysis.h is located in the subfolder “include”)
Thanks,
regards,
Francesca
analysis.c (3.5 KB)
subr.c (2.0 KB)
analysis.h (1.1 KB)

_ROOT Version: 6.30/06
Platform: Ubuntu 22.04

Hi,

Thanks for the post.
I think that error is a sign of some misconfiguration on your side. Are you sure the ROOT installation you are using is sane, for example it’s not partially removed or that you don’t have two ROOT installations being used somehow together in the same environment?

Cheers,
D

Hello.
I will check against misconfiguration.
Thanks,
cheers,
Francesca

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.