Doing "install pythia8" how do I tell the compiler that it needs to use a "-std=c++11" flag?
I have downloaded the latest version of madgraph (to check if that will solve another issue) and I am trying to install pythia with the madgraph prompt. The installer runs into an error "Range-based 'for' loops are not allowed in C++98 mode". In theory this can be resolved by compiling with "-std=c++11".
I tried going into HEPToolInstaller.py and changing the line;
_cpp = "g++"
to
_cpp = "g++ -std=c++11"
but that gets reset somehow when I actually run "install pythia8" from inside madgraph.
I tried changing the line then just calling HEPToolInstaller.py directly, and it did install pythia sucessfully, but it caused a cascade of problems starting with the mg5amc_
Is there a correct way to specify additional flags for g++?
I am working on a cluster without administrative privileges, so I'm a bit limited in my ability to alter g++ itself.
Many thanks, Henry
Edit; for what it worth I just tried installing on my local machine and that worked without error.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Olivier Mattelaer
- Solved:
- Last query:
- Last reply: