Message: Re: Add EventAction to examples/extended/medical/dna/microdosimetry in eclipse Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Add EventAction to examples/extended/medical/dna/microdosimetry in eclipse 

Forum: Documentation and Examples
Re: None Add EventAction to examples/extended/medical/dna/microdosimetry in eclipse (Huagang Yan)
Date: 27 Sep, 2016
From: Michael H. Kelsey <Michael H. Kelsey>

On Tue, 27 Sep 2016 19:34:04 GMT, Huagang Yan wrote:
> I added class EventAction to the project of Microdosimetry.
> 
> When I build it, the following error information follows: undefined
> reference to 'EventAction::EventAction(RunAction*)', which refers to the
> command of "EventAction* eventAction = new EventAction(runAction);" in
> ActionInitialization.cc
> 
> EventAction.hh is shown below. Could anyone help me find the cause? I
> guess the reason might be that I added the header .hh and source .cc
> file manually, so that the builder might not be smart enough to know my
> adding the codes.

The example CMakeLists.txt file does use file globbing, so it should have found your new source code automatically. Presumably you put the EventAction.hh into the "include/" directory, and EventAction.cc into "src/". In your .cc file did you implement the constructor?

  -- Michael Kelsey

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Feedback: Re: Add EventAction to examples/extended/medical/dna/microdosimetry in eclipse   (Huagang Yan - 28 Sep, 2016)
 Add Message Add Message
to: "Re: Add EventAction to examples/extended/medical/dna/microdosimetry in eclipse"

 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 ]