when I call my ActionUser class created in the main program, the following problem appears on the screen.
I do not understand this problem because I think I have written well
Thank you, cordially Raoul
Could you double check that the application is building/linking against the expected version of Geant4? If possible, could you also post the source files as attachments here so we can look at the whole, especially the main function.
Thanks for these files, could you also post the rest of the files needed to compile the full application please? I think that’s the only way to try and confirm what’s going on.
The short answer is to remove the line SetUserAction(new primarygenerator); in ActionInitialization::BuildForMaster(). The general rule is that only any RunAction class should be initialised here and no others.
We’ll look at making the error message clearer here.