GATE CT analyze.cpp

hi, please anyone can help me,
i try to compile the file Analyze.cpp for see the output of my simulation, but i have this error :~/hs/spectre > g++ -O3 root-config --cflags --glibs AnalyzeCT.cpp -o AnalyzeCT
/tmp/ccbEwUGv.o: In function int TTree::SetBranchAddress<float>(char const*, float*, TBranch**)': AnalyzeCT.cpp:(.text._ZN5TTree16SetBranchAddressIfEEiPKcPT_PP7TBranch[_ZN5TTree16SetBranchAddressIfEEiPKcPT_PP7TBranch]+0x25): undefined reference to TClass::GetClass(std::type_info const&, bool, bool)’
AnalyzeCT.cpp:(.text._ZN5TTree16SetBranchAddressIfEEiPKcPT_PP7TBranch[_ZN5TTree16SetBranchAddressIfEEiPKcPT_PP7TBranch]+0x6d): undefined reference to TDataType::GetType(std::type_info const&)' /tmp/ccbEwUGv.o: In function int TTree::SetBranchAddress(char const*, int*, TBranch**)’:
AnalyzeCT.cpp:(.text._ZN5TTree16SetBranchAddressIiEEiPKcPT_PP7TBranch[_ZN5TTree16SetBranchAddressIiEEiPKcPT_PP7TBranch]+0x25): undefined reference to TClass::GetClass(std::type_info const&, bool, bool)' AnalyzeCT.cpp:(.text._ZN5TTree16SetBranchAddressIiEEiPKcPT_PP7TBranch[_ZN5TTree16SetBranchAddressIiEEiPKcPT_PP7TBranch]+0x6d): undefined reference to TDataType::GetType(std::type_info const&)’
/tmp/ccbEwUGv.o: In function main': AnalyzeCT.cpp:(.text.startup+0x9f): undefined reference to TApplication::TApplication(char const*, int*, char**, void*, int)’
AnalyzeCT.cpp:(.text.startup+0xa9): undefined reference to TStorage::ObjectAlloc(unsigned long)' AnalyzeCT.cpp:(.text.startup+0xdc): undefined reference to TCanvas::TCanvas(char const*, char const*, int, int, int, int)’
AnalyzeCT.cpp:(.text.startup+0xef): undefined reference to TCanvas::ToggleToolBar()' AnalyzeCT.cpp:(.text.startup+0x105): undefined reference to TStorage::ObjectAlloc(unsigned long)’
AnalyzeCT.cpp:(.text.startup+0x126): undefined reference to TFile::TFile(char const*, char const*, char const*, int)' AnalyzeCT.cpp:(.text.startup+0x12e): undefined reference to TFile::IsOpen() const’
AnalyzeCT.cpp:(.text.startup+0x243): undefined reference to TStorage::ObjectAlloc(unsigned long)' AnalyzeCT.cpp:(.text.startup+0x283): undefined reference to TH2F::TH2F(char const*, char const*, int, double, double, int, double, double)’
AnalyzeCT.cpp:(.text.startup+0x28d): undefined reference to TStorage::ObjectAlloc(unsigned long)' AnalyzeCT.cpp:(.text.startup+0x2cd): undefined reference to TH2F::TH2F(char const*, char const*, int, double, double, int, double, double)’
AnalyzeCT.cpp:(.text.startup+0x2d7): undefined reference to TStorage::ObjectAlloc(unsigned long)' AnalyzeCT.cpp:(.text.startup+0x309): undefined reference to TH1F::TH1F(char const*, char const*, int, double, double)’
AnalyzeCT.cpp:(.text.startup+0x313): undefined reference to TStorage::ObjectAlloc(unsigned long)' AnalyzeCT.cpp:(.text.startup+0x345): undefined reference to TH1F::TH1F(char const*, char const*, int, double, double)’
AnalyzeCT.cpp:(.text.startup+0x34f): undefined reference to TStorage::ObjectAlloc(unsigned long)' AnalyzeCT.cpp:(.text.startup+0x381): undefined reference to TH1F::TH1F(char const*, char const*, int, double, double)’
AnalyzeCT.cpp:(.text.startup+0x38b): undefined reference to TStorage::ObjectAlloc(unsigned long)' AnalyzeCT.cpp:(.text.startup+0x3bd): undefined reference to TH1F::TH1F(char const*, char const*, int, double, double)’
AnalyzeCT.cpp:(.text.startup+0x3c7): undefined reference to TStorage::ObjectAlloc(unsigned long)' AnalyzeCT.cpp:(.text.startup+0x3f9): undefined reference to TH1F::TH1F(char const*, char const*, int, double, double)’
AnalyzeCT.cpp:(.text.startup+0x403): undefined reference to TStorage::ObjectAlloc(unsigned long)' AnalyzeCT.cpp:(.text.startup+0x435): undefined reference to TH1F::TH1F(char const*, char const*, int, double, double)’
AnalyzeCT.cpp:(.text.startup+0x43f): undefined reference to TStorage::ObjectAlloc(unsigned long)' AnalyzeCT.cpp:(.text.startup+0x471): undefined reference to TH1F::TH1F(char const*, char const*, int, double, double)’
AnalyzeCT.cpp:(.text.startup+0x47b): undefined reference to TStorage::ObjectAlloc(unsigned long)' AnalyzeCT.cpp:(.text.startup+0x4ad): undefined reference to TH1F::TH1F(char const*, char const*, int, double, double)’
AnalyzeCT.cpp:(.text.startup+0x1444): undefined reference to gStyle' AnalyzeCT.cpp:(.text.startup+0x1458): undefined reference to TStyle::SetPalette(int, int*, float)’
AnalyzeCT.cpp:(.text.startup+0x145f): undefined reference to gStyle' AnalyzeCT.cpp:(.text.startup+0x146b): undefined reference to TStyle::SetOptStat(char const*)’
AnalyzeCT.cpp:(.text.startup+0x1475): undefined reference to TStorage::ObjectAlloc(unsigned long)' AnalyzeCT.cpp:(.text.startup+0x14c1): undefined reference to TPad::TPad(char const*, char const*, double, double, double, double, short, short, short)’
AnalyzeCT.cpp:(.text.startup+0x14cb): undefined reference to TStorage::ObjectAlloc(unsigned long)' AnalyzeCT.cpp:(.text.startup+0x1517): undefined reference to TPad::TPad(char const*, char const*, double, double, double, double, short, short, short)’
AnalyzeCT.cpp:(.text.startup+0x1521): undefined reference to TStorage::ObjectAlloc(unsigned long)' AnalyzeCT.cpp:(.text.startup+0x1569): undefined reference to TPad::TPad(char const*, char const*, double, double, double, double, short, short, short)’
AnalyzeCT.cpp:(.text.startup+0x1573): undefined reference to TStorage::ObjectAlloc(unsigned long)' AnalyzeCT.cpp:(.text.startup+0x15bf): undefined reference to TPad::TPad(char const*, char const*, double, double, double, double, short, short, short)’
AnalyzeCT.cpp:(.text.startup+0x15c9): undefined reference to TStorage::ObjectAlloc(unsigned long)' AnalyzeCT.cpp:(.text.startup+0x1611): undefined reference to TPad::TPad(char const*, char const*, double, double, double, double, short, short, short)’
AnalyzeCT.cpp:(.text.startup+0x161b): undefined reference to TStorage::ObjectAlloc(unsigned long)' AnalyzeCT.cpp:(.text.startup+0x1663): undefined reference to TPad::TPad(char const*, char const*, double, double, double, double, short, short, short)’
AnalyzeCT.cpp:(.text.startup+0x166d): undefined reference to TStorage::ObjectAlloc(unsigned long)' AnalyzeCT.cpp:(.text.startup+0x16b9): undefined reference to TPad::TPad(char const*, char const*, double, double, double, double, short, short, short)’
AnalyzeCT.cpp:(.text.startup+0x16c3): undefined reference to TStorage::ObjectAlloc(unsigned long)' AnalyzeCT.cpp:(.text.startup+0x170f): undefined reference to TPad::TPad(char const*, char const*, double, double, double, double, short, short, short)’
AnalyzeCT.cpp:(.text.startup+0x1719): undefined reference to TStorage::ObjectAlloc(unsigned long)' AnalyzeCT.cpp:(.text.startup+0x1765): undefined reference to TPad::TPad(char const*, char const*, double, double, double, double, short, short, short)’
AnalyzeCT.cpp:(.text.startup+0x176f): undefined reference to TStorage::ObjectAlloc(unsigned long)' AnalyzeCT.cpp:(.text.startup+0x17b7): undefined reference to TPad::TPad(char const*, char const*, double, double, double, double, short, short, short)’
AnalyzeCT.cpp:(.text.startup+0x1cef): undefined reference to TApplication::Run(bool)' AnalyzeCT.cpp:(.text.startup+0x1d43): undefined reference to TApplication::~TApplication()’
AnalyzeCT.cpp:(.text.startup+0x2203): undefined reference to TObject::operator delete(void*)' AnalyzeCT.cpp:(.text.startup+0x220f): undefined reference to TApplication::~TApplication()’
AnalyzeCT.cpp:(.text.startup+0x2273): undefined reference to TObject::operator delete(void*)' AnalyzeCT.cpp:(.text.startup+0x2287): undefined reference to TObject::operator delete(void*)’
AnalyzeCT.cpp:(.text.startup+0x229b): undefined reference to TObject::operator delete(void*)' AnalyzeCT.cpp:(.text.startup+0x22af): undefined reference to TObject::operator delete(void*)’
AnalyzeCT.cpp:(.text.startup+0x22c3): undefined reference to TObject::operator delete(void*)' /tmp/ccbEwUGv.o:AnalyzeCT.cpp:(.text.startup+0x22d7): more undefined references to TObject::operator delete(void*)’ follow
/tmp/ccbEwUGv.o: In function _GLOBAL__sub_I_main': AnalyzeCT.cpp:(.text.startup+0x3b): undefined reference to TVersionCheck::TVersionCheck(int)’
collect2: error: ld returned 1 exit status

Hello,

I assume that this isn’t a question concerning RooFit, so I put it in the main forum. Also, can you check the instructions for posting code, which will make everything a lot easier to read.

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