Error using mex
sundials_interface.c
C:\msys64\home\User\sundials\include\sundials\sundials_config.h(59): fatal error C1021: invalid preprocessor command 'cmakedefine'
I am getting this error. What should I do to rectify it.
Thanks!

 Akzeptierte Antwort

Steven Lord
Steven Lord am 24 Mär. 2025

0 Stimmen

If you're using release R2024a or later the ability to use SUNDIALS solvers is now available as part of MATLAB. You don't need to compile the MEX-files yourself to use them, just use the ode object.

1 Kommentar

Ajinkya
Ajinkya am 24 Mär. 2025
I am aware of that but i still want to use the other solvers of SUNDIALS. I am using Copilot to write the code but facing this error.
Also, it will be a learning activity for me.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Produkte

Tags

Gefragt:

am 24 Mär. 2025

Kommentiert:

am 24 Mär. 2025

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by