This is the repository for the English version of the Future Elderly Model, originally developed at the Leonard D. Schaeffer Center for Health Policy and Microsimulation.
MIT License
3
stars
1
forks
source link
Missing model error when trying to compile FEM #107
These are all warnings from the compile process, which with the inclusion of the -Werror flag cause a failure - -Werror tells the compiler to treat all warnings as errors. I think this is something to do with the order of compilation, where the file that should set the paths to the models is not being run before the files that rely on these paths. The order of compilation is also different on my laptop, but I haven't been able to figure out why. The laptop order is seemingly random (but I suspect set somewhere), whereas my PC runs things in alphabetical order. Also I copied over the FEM object from my laptop when moving to the PC, which I suspect is why the model compiled and ran previously.
In any case, I have been able to compile and run the model by removing the -Werror flag and accepting the warnings without throwing an error. I sort of remember having to do this a long time ago, so hopefully this is the last of this particular error. I'm opening this issue with a WARNING flag, so that I can come back to this if any other problems arise.
I have cloned a fresh copy of the EFEM repo to my new PC, and when running
make FEM
, getting the following error:I have followed the error from this function in CrossSectionalModule.cpp...:
...to this function in SSCalculator.cpp:
These are all warnings from the compile process, which with the inclusion of the
-Werror
flag cause a failure --Werror
tells the compiler to treat all warnings as errors. I think this is something to do with the order of compilation, where the file that should set the paths to the models is not being run before the files that rely on these paths. The order of compilation is also different on my laptop, but I haven't been able to figure out why. The laptop order is seemingly random (but I suspect set somewhere), whereas my PC runs things in alphabetical order. Also I copied over the FEM object from my laptop when moving to the PC, which I suspect is why the model compiled and ran previously.In any case, I have been able to compile and run the model by removing the
-Werror
flag and accepting the warnings without throwing an error. I sort of remember having to do this a long time ago, so hopefully this is the last of this particular error. I'm opening this issue with a WARNING flag, so that I can come back to this if any other problems arise.