Hi,
I'm trying to install openCARP from sources on an HPC, following the guidelines to build from the sources.
I first loaded all the modules required:
module load tools/dev
module load PETSc/3.17.4-foss-2022a
module load sundials/2.7.0
module load Python/3.10.4-GCCcore-11.3.0
Then, I compiled gengetopt; then I configured with cmake:
cmake -S. -B_build -DDLOPEN=ON -DCMAKE_BUILD_TYPE=Release
when I tried to build openCARP (cmake --build _build
), I experienced the
following error (I'm reporting the 1st line only):
| ^~~~~~~
/rds/general/user/ccorrad1/home/Codes/openCARP/_build/physics/limpet/cmdline.cc: In function ‘char* get_multiple_arg_token(const char*)’:
/rds/general/user/ccorrad1/home/Codes/openCARP/_build/physics/limpet/cmdline.cc:1175:16: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
1175 | tok = strchr (arg, ',');
| ~~~~~~~^~~~~~~~~~
| |
| const char*
What is generating this error? What should I to to sort this out?
Thanks,
Cesare