It’s possible you may be encountering the same problems as reported here: For multi-threaded version, define G4VUserPrimaryGeneratorAction in G4VUserActionInitialization.
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.