When i want to compile my code, it would show the following massage.
Info in TUnixSystem::ACLiC: creating shared library /home/cylin/mulife/./mulife_C.so
sh: g++34: command not found
Error: external preprocessing failed. :0:
!!!Removing /home/cylin/mulife/mulife_C_ACLiC_dict.cxx /home/cylin/mulife/mulife_C_ACLiC_dict.h !!!
Error: /home/cylin/root/bin/rootcint: error loading headers…
Error in : Dictionary generation failed!
Info in : Invoking compiler to check macro’s validity
sh: g++34: command not found
However, my code is pretty simple.
void mulife()
{
float i,j,k,a;
ifstream f;
c=new TCanvas(“c”,“muon lifetime”,200,10,700,500);
void mulife()
{
float i,j,k,a;
ifstream f;
c=new TCanvas(“c”,“muon lifetime”,200,10,700,500);
void mulife()
{
float i,j,k,a;
ifstream f;
c=new TCanvas(“c”,“muon lifetime”,200,10,700,500);
h=new TH1F(“h”,“muon life time”,30,0,19);
f.open("/home/cylin/mulife/mulife.txt",ios::in);
f>>i;
while (!f.eof())
{
printf("%2.3f\n",i);
h->Fill(i);
f>>i;
}
f.fclose;
TF1*t1=new TF1("t1","[0]*exp(-x/[1])",0,10);
t1->SetParNames("Particles","lifetime");
t1->SetParameters(200,300);
t1->SetParameter(1,2.5);
h->Fit("t1");
gStyle->SetOptFit(0001);
h->Draw("E");
}
what should i do to fix the problem?