Message: Re: shared library problem with QGSP_BIC Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Ok Re: shared library problem with QGSP_BIC 

Forum: Installation and Configuration
Re: Question shared library problem with QGSP_BIC (Tom Roberts)
Date: 31 Jul, 2009
From: Tom Roberts <Tom Roberts>

I have (finally!) figured this out. There is an invalid dependency on static initializer order. I have reported this as problem 1075 in the Geant4 bugzilla; there are more details there.

I do not know why I get a different link order than Gabriele and other people.

I have a workaround for all physics lists that don't use the RPG model: in processes/hadronic/models/rpg/src/G4RPGInelastic.cc there are 18 static initializers near the end, all of the form:
  G4ParticleDefinition* p0 = G4PionZero::PionZero();
  ...
Change them to 0 instead of a particle initializer. If you use this model, you could probably move them to the class constructor; I haven't tried that and don't know if it works.

NOTE: it is certainly possible that other classes have a similar disease. But this one workaround resolves my current problem.

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

1 Agree: Re: shared library problem with QGSP_BIC   (Gabriele Cosmo - 31 Jul, 2009)
 Add Message Add Message
to: "Re: shared library problem with QGSP_BIC"

 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 ]