[Gate-users] hi gate-users
David Boersma
david.boersma at acmit.at
Tue Aug 18 10:40:09 CEST 2020
Dear Hassan,
I'm assuming that you are referring to "imaging/CT/classic/AnalyzeCT.cpp" in GateContrib:
https://github.com/OpenGATE/GateContrib/blob/master/imaging/CT/classic/AnalyzeCT.cpp
When I run your command line (with backticks around the root-config call) then I can exactly reproduce the errors that you report. I'm using g++ version 9.3.0 and ROOT version 6.18.04.
I found your command line in the GateContrib docs:
https://github.com/OpenGATE/GateContrib/blob/master/imaging/CT/readme.md
Maybe that is where you found it too. When you look at it again right now, you'll see a different command line (I changed it):
g++ -O3 `root-config --cflags` AnalyzeCT.cpp `root-config --glibs` -o AnalyzeCT
For me, that makes the linking errors go away, and it looks like the "AnalyzeCT" program runs normally. Could you let us know (please reply to the list, not only to me) if this works for you too?
Good luck,
David Boersma
________________________________
Von: Gate-users <gate-users-bounces at lists.opengatecollaboration.org> im Auftrag von hassan ouhadda <ouhaddahassan at gmail.com>
Gesendet: Montag, 17. August 2020 18:47:56
An: gate-users at lists.opengatecollaboration.org
Betreff: [Gate-users] hi gate-users
please i have this problem when i try to compile the out put file CT : AnalyzeCT.cpp
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
help me please
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20200818/1a2e9797/attachment-0001.html>
More information about the Gate-users
mailing list