/tmp/ccCHAg84.o: In function `main': calib.cpp:(.text+0x2e): undefined reference to `gStyle' calib.cpp:(.text+0x3b): undefined reference to `TStyle::SetOptStat(int)' calib.cpp:(.text+0x42): undefined reference to `gStyle' calib.cpp:(.text+0x4f): undefined reference to `TStyle::SetOptFit(int)' calib.cpp:(.text+0x56): undefined reference to `gStyle' calib.cpp:(.text+0x276): undefined reference to `TFile::TFile(char const*, char const*, char const*, int)' calib.cpp:(.text+0x2a1): undefined reference to `TTree::TTree(char const*, char const*, int)' calib.cpp:(.text+0x5e4): undefined reference to `ROOT::GetROOT()' calib.cpp:(.text+0x5fe): undefined reference to `TROOT::ProcessLine(char const*, int*)' calib.cpp:(.text+0x767): undefined reference to `TProfile::TProfile(char const*, char const*, int, double, double, char const*)' calib.cpp:(.text+0xdec): undefined reference to `TGraphErrors::TGraphErrors(int)' calib.cpp:(.text+0x1203): undefined reference to `TCanvas::TCanvas(char const*, char const*, int, int)' calib.cpp:(.text+0x1234): undefined reference to `TCanvas::TCanvas(char const*, char const*, int, int)' calib.cpp:(.text+0x1255): undefined reference to `TGraphErrors::TGraphErrors(int)' calib.cpp:(.text+0x12c1): undefined reference to `TGraphErrors::TGraphErrors(int)' calib.cpp:(.text+0x131a): undefined reference to `gStyle' calib.cpp:(.text+0x1327): undefined reference to `TStyle::SetOptFit(int)' calib.cpp:(.text+0x13d4): undefined reference to `TF1::TF1(char const*, char const*, double, double, TF1::EAddToList)' calib.cpp:(.text+0x14be): undefined reference to `TFitResultPtr::~TFitResultPtr()' calib.cpp:(.text+0x1524): undefined reference to `TGraph::GetXaxis() const' calib.cpp:(.text+0x1562): undefined reference to `TGraph::GetYaxis() const' calib.cpp:(.text+0x1590): undefined reference to `TGraph::GetYaxis() const' calib.cpp:(.text+0x19ec): undefined reference to `gStyle' calib.cpp:(.text+0x19f9): undefined reference to `TStyle::SetOptFit(int)' calib.cpp:(.text+0x1aaf): undefined reference to `TFitResultPtr::~TFitResultPtr()' calib.cpp:(.text+0x1ae0): undefined reference to `TGraph::GetXaxis() const' calib.cpp:(.text+0x1b06): undefined reference to `TGraph::GetYaxis() const' calib.cpp:(.text+0x1c48): undefined reference to `TFitResultPtr::~TFitResultPtr()' calib.cpp:(.text+0x1c79): undefined reference to `TGraph::GetXaxis() const' calib.cpp:(.text+0x1c9f): undefined reference to `TGraph::GetYaxis() const' calib.cpp:(.text+0x1e60): undefined reference to `TObject::operator delete(void*)' calib.cpp:(.text+0x1e76): undefined reference to `TObject::operator delete(void*)' calib.cpp:(.text+0x1e8c): undefined reference to `TObject::operator delete(void*)' calib.cpp:(.text+0x1e9c): undefined reference to `TObject::operator delete(void*)' calib.cpp:(.text+0x1eac): undefined reference to `TObject::operator delete(void*)' /tmp/ccCHAg84.o:calib.cpp:(.text+0x1ebc): more undefined references to `TObject::operator delete(void*)' follow /tmp/ccCHAg84.o: In function `__static_initialization_and_destruction_0(int, int)': calib.cpp:(.text+0x1f5a): undefined reference to `TVersionCheck::TVersionCheck(int)' /tmp/ccCHAg84.o: In function `TObject::operator new(unsigned long)': calib.cpp:(.text._ZN7TObjectnwEm[_ZN7TObjectnwEm]+0x14): undefined reference to `TStorage::ObjectAlloc(unsigned long)' /tmp/ccCHAg84.o: In function `TCanvasImp::IsA() const': calib.cpp:(.text._ZNK10TCanvasImp3IsAEv[_ZNK10TCanvasImp3IsAEv]+0xd): undefined reference to `TCanvasImp::Class()' /tmp/ccCHAg84.o: In function `TCanvasImp::ShowMembers(TMemberInspector&) const': calib.cpp:(.text._ZNK10TCanvasImp11ShowMembersER16TMemberInspector[_ZNK10TCanvasImp11ShowMembersER16TMemberInspector]+0x11): undefined reference to `TCanvasImp::Class()' calib.cpp:(.text._ZNK10TCanvasImp11ShowMembersER16TMemberInspector[_ZNK10TCanvasImp11ShowMembersER16TMemberInspector]+0x27): undefined reference to `ROOT::Class_ShowMembers(TClass*, void const*, TMemberInspector&)' /tmp/ccCHAg84.o:(.rodata._ZTV10TCanvasImp[_ZTV10TCanvasImp]+0x100): undefined reference to `TCanvasImp::Streamer(TBuffer&)' collect2: error: ld returned 1 exit status