Message: Re: error linking linac example when it is modified to read iaea files Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: error linking linac example when it is modified to read iaea files 

Forum: Medical Applications
Re: None error linking linac example when it is modified to read iaea files (Balder)
Re: None Re: error linking linac example when it is modified to read iaea files (Miguel Cortes-Giraldo)
Re: Question Re: error linking linac example when it is modified to read iaea files (Balder)
Date: Mar 14, 03:19
From: <heid>

Hi,
I am trying to read in an IAEA phase space file into my Geant4 simulation (using Geant4 10.4). I have copied all necessary IAEA files into the appropriate include and src subdirectories and added the following headers in the G4IAEAphspReader.cc:

#include "G4SystemOfUnits.hh"
#include "G4PhysicalConstants.hh"

However, when I compile the code, I get the following error:

G4IAEAphspReader.hh:88:63: error: no matching function for call to G4Exception(const char [45])
   { G4Exception("Cannot use G4IAEAphspReader void constructor"); }

Taking a look in the G4IAEAphspReader.hh file, it appears that G4Exception only has one argument instead of 4:

private:
  G4IAEAphspReader()
  { G4Exception("Cannot use G4IAEAphspReader void constructor"); }

When I edit the above line as follows, I no longer get an error:
{ G4Exception("Cannot use G4IAEAphspReader void constructor", 0, JustWarning, 0);}

Could you please advise me whether this workaround is okay or is it error-prone?

Cheers,
Heid

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

1 None: Re: error linking linac example when it is modified to read iaea files   (Miguel Cortes-Giraldo - Mar 19, 09:06)
(_ None: Re: error linking linac example when it is modified to read iaea files   (heid - Mar 20, 03:14)
(_ None: Re: error linking linac example when it is modified to read iaea files   (Miguel Cortes-Giraldo - Mar 20, 08:07)
(_ None: Re: error linking linac example when it is modified to read iaea files   (heid - Mar 22, 00:55)
 Add Message Add Message
to: "Re: error linking linac example when it is modified to read iaea files"

 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 ]