# Debugging ActionInitialization.cc

**URL:** <https://geant4-forum.web.cern.ch/t/debugging-actioninitialization-cc/5618>\
**Category:** Particles, Track, Event, Run and Biasing\
**Created:** [July 3, 2021, 10:04pm UTC](https://geant4-forum.web.cern.ch/t/debugging-actioninitialization-cc/5618 "2021-07-03T22:04:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhuohengy](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/zhuohengy/32/3218_2.png) [@zhuohengy](https://geant4-forum.web.cern.ch/u/zhuohengy)\
**Post date:** [July 3, 2021, 10:04pm UTC](https://geant4-forum.web.cern.ch/t/debugging-actioninitialization-cc/5618/1 "2021-07-03T22:04:19Z")

</div>

Hi, i needed help with this error. Thanks

 ![Screen Shot 2021-07-03 at 17.56.24](https://geant4-forum.web.cern.ch/uploads/default/original/2X/3/3a42be7abe9a519a8a7e465e225cb5f4bba74c2b.png)  
 ![Screen Shot 2021-07-03 at 17.56.35](https://geant4-forum.web.cern.ch/uploads/default/original/2X/6/6895c5b2845982a6b16a7c97c7f84bfaad80e67c.jpeg)

---

<div class="post-metadata">

**Author:** ![weller](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/weller/32/3357_2.png) [@weller](https://geant4-forum.web.cern.ch/u/weller)\
**Post date:** [July 4, 2021, 6:52am UTC](https://geant4-forum.web.cern.ch/t/debugging-actioninitialization-cc/5618/2 "2021-07-04T06:52:49Z")

</div>

what is the content of your `runAction.hh` and `runAction.cc`?

---

<div class="post-metadata">

**Author:** ![zhuohengy](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/zhuohengy/32/3218_2.png) [@zhuohengy](https://geant4-forum.web.cern.ch/u/zhuohengy)\
**Post date:** [July 5, 2021, 4:10pm UTC](https://geant4-forum.web.cern.ch/t/debugging-actioninitialization-cc/5618/3 "2021-07-05T16:10:50Z")

</div>

![Screen Shot 2021-07-03 at 21.00.28](https://geant4-forum.web.cern.ch/uploads/default/original/2X/9/9b7bf032336c1a969f6b187354178e305d84a127.png)  
 ![Screen Shot 2021-07-03 at 21.00.19](https://geant4-forum.web.cern.ch/uploads/default/original/2X/1/11fd1797e7bba9d8c30926fabd0a0d278a315923.png)  
 ![Screen Shot 2021-07-03 at 21.00.08](https://geant4-forum.web.cern.ch/uploads/default/original/2X/2/2c09581e4d80193024e3fdc9ec2e63fbc0f89cef.png)  
 ![Screen Shot 2021-07-03 at 20.59.55](https://geant4-forum.web.cern.ch/uploads/default/original/2X/9/920e90903728c2085cc4b5fe2fdb1fbc44a5f5ea.png)  
 ![Screen Shot 2021-07-03 at 20.59.46](https://geant4-forum.web.cern.ch/uploads/default/original/2X/1/1f79c32cce9b058ab2a7fb7832b70454755e75ee.png)

---

<div class="post-metadata">

**Author:** ![weller](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/weller/32/3357_2.png) [@weller](https://geant4-forum.web.cern.ch/u/weller)\
**Post date:** [July 5, 2021, 4:50pm UTC](https://geant4-forum.web.cern.ch/t/debugging-actioninitialization-cc/5618/4 "2021-07-05T16:50:23Z")

</div>

there is no definition for runAction() without any arguments.

---

<div class="post-metadata">

**Author:** ![zhuohengy](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/zhuohengy/32/3218_2.png) [@zhuohengy](https://geant4-forum.web.cern.ch/u/zhuohengy)\
**Post date:** [July 5, 2021, 5:42pm UTC](https://geant4-forum.web.cern.ch/t/debugging-actioninitialization-cc/5618/5 "2021-07-05T17:42:12Z")

</div>

What should it be then, i never work with this file before

---

<div class="post-metadata">

**Author:** ![weller](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/weller/32/3357_2.png) [@weller](https://geant4-forum.web.cern.ch/u/weller)\
**Post date:** [July 5, 2021, 6:07pm UTC](https://geant4-forum.web.cern.ch/t/debugging-actioninitialization-cc/5618/6 "2021-07-05T18:07:44Z")

</div>

the general recommendation is reading a tutorial on c++ coding, there are plenty on the internet if you look for it.
