Message: Undefined Reference to 'ActionInitialization::ActionInitialization()' Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Undefined Reference to 'ActionInitialization::ActionInitialization()' 

Forum: Run Management
Date: 08 Aug, 2018
From: Giuseppe Caporaso <Giuseppe Caporaso>

Hi All,

I'm trying to edit my code to support Multithreading. Based on examples (B1 and another forum, link below) I've made my ActionInitialization.cc/.hh files and attempted to link it to my main() (Eu155CBCT).

When I try to compile my example however, I get this error

CMakeFiles/Eu155CBCT.dir/Eu155CBCT.cc.o: In function `main': Eu155CBCT.cc:(.text.startup+0x11d): undefined reference to `ActionInitialization::ActionInitialization()' collect2: error: ld returned 1 exit status

I've attached some files. Probably more than necessary but, because I referenced them in my Action Initialization, some might want to see.

Any help is greatly appreciated.

Thanks, - Giuseppe

Link -- http://hypernews.slac.stanford.edu/HyperNews/geant4/get/runmanage/413.html?inline=-1

   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2018/08/08/02.36-54473-ActionInitialization.cc
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2018/08/08/02.36-40192-ActionInitialization.hh
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2018/08/08/02.36-12564-Eu155CBCT.cc
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2018/08/08/02.36-4483-PrimaryGeneratorAction.cc
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2018/08/08/02.36-35403-RunAction.cc
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2018/08/08/02.36-59299-VoxelScoring.cc

 Add Message Add Message
to: "Undefined Reference to 'ActionInitialization::ActionInitialization()'"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]