Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build without Diracxx fails #213

Open
s6pepaul opened this issue Apr 13, 2022 · 0 comments
Open

Build without Diracxx fails #213

s6pepaul opened this issue Apr 13, 2022 · 0 comments

Comments

@s6pepaul
Copy link

I am trying to build hdgeant4 2.33.0 (latest release) without diracxx and encountered the following errors:

src/GlueXBeamConversionProcess.cc: In member function virtual double GlueXBeamConversionProcess::nucleonFormFactor(double, GlueXBeamConversionProcess::FormFactorType):
src/GlueXBeamConversionProcess.cc:1938:34: error: mProton was not declared in this scope
double tau = Q2_GeV / sqr(2 * mProton);
^
src/GlueXBeamConversionProcess.cc: In member function virtual double GlueXBeamConversionProcess::nuclearMass_GeV():
src/GlueXBeamConversionProcess.cc:2063:14: error: mNeutron was not declared in this scope
return mNeutron;
^
src/GlueXBeamConversionProcess.cc:2065:14: error: mProton was not declared in this scope
return mProton;

These are defined properly in Diracxx but if one wants to build without, they are not and this case is not caught by the compiler flags. As a simple workaround for now I added these to constants to the header file, but maybe you want a more elegant solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant