Closed derleanfv closed 6 days ago
Hi @derleanfv, the matlab-mingw compiler seems to be too old too support C++17.
I don't have any Windows machine available to test this, but can you try:
Hi,
thank you for the help. I managed to get it working by:
Then when executing an amici script, matlab threw out a warning, but it worked. I was shocked, that the "MATLAB Support for MinGW-w64 C/C++/Fortran Compiler" even for 2024a is too outdated to compile. But since I can create the simulate files with matlab 2017b, I can also call them with matlab 2024a and everything works fine.
Thank you
What did you expect to happen? After installing AMICI and making sure to run mex -setup C++, I used the model examples in \models. For example rebuild_model_robertson. I expect it would just compile.
What has happened instead? There was an error in using "std::reduce(idlist.begin(), idlist.end())" in the file \include/amici/model_dae.h:62:13. I checked the version of C++, but in the command line before outputting the error it says mex COPTIMFLAGS=' -DNDEBUG' CXXFLAGS='$CXXFLAGS -std=c++17' -c -outdir "C:\Users...", which includes c++17, which should support std::reduce.
To Reproduce Compile an example by running rebuild_model_robertson Steps to reproduce the behavior Ideally include minimal code examples here
AMICI version and system environment
How to fix Do you know how to resolve the problem? No, I have been trying for hours to find a solution. I am not experienced with c++. Can you submit a pull request?
Thank you for the help