Fatal error: G4VUserPrimaryGeneratorAction is not defined!

What means that error ? What it’s necessary to do ?

-------- EEEE ------- G4Exception-START -------- EEEE -------
*** G4Exception : Run0032
issued by : G4RunManager::GenerateEvent()

G4VUserPrimaryGeneratorAction is not defined!
*** Fatal Exception *** core dump ***
**** Track information is not available at this moment
**** Step information is not available at this moment

-------- EEEE -------- G4Exception-END --------- EEEE -------

*** G4Exception: Aborting execution ***

It means that you did not register a subclass of G4VUserPrimaryGeneratorAction with the RunManager. Maybe you didn’t implement it, or maybe you just forgot to register the UserAction. Take a look at the basic examples, such as exampleB1, to see how to do this.