SUNDIALS solvers interface into Matlab.
Ältere Kommentare anzeigen
Error using mex
MEX cannot find library 'sundials_cvode', specified with the -l option.
MEX searched for a file with one of the following names:
libsundials_cvode.lib
sundials_cvode.lib
Verify the library name is correct. If the library is not
on the existing path, specify the path with the -L option.
I am getting the above error while executing the mex. the library name is "libsundials_cvode.a". Do I need to change the extension to ".lib" or the error is something else.
I am trying to create the sundials interface into MATLAB. I know the latest versions of MATALAB have sundials configured in it. Just doing it for a learning.
3 Kommentare
dpb
am 24 Mär. 2025
".a" is the default extension used for output library object files; it appears the make file you're using is not defining or renaming that library file to use the .lib extension instead.
Either fix the earlier place where that is to name the built .lib file as is expected or alternatively, just patch the library -l name to match what you do have.
Without any knowledge of from where you got the package you're trying to build, folks here are pretty much at a loss as to what you may have done incorrectly...or able to see what might actually be wrong in the make file you're using
Ajinkya
am 24 Mär. 2025
My old eyes can't read that and can't do anything with an image, anyways...need to see the actual make file; probably better to link to the source of what you're trying to build so folks have some klew as to what you actually started with...maybe it's bum.
As noted, the simplest fix, presuming the lib file was actually made correctly (which may be a big assumption, we can't tell) is to simply rename the .a lib file to match the link lib name--of course, that means starting at the link step and not rebuilding the whole thing which would simply recreate the .a version.
As noted earlier, this indicates something is broken in the make file but we can't see it from here...whoever created/posted it would be the one/place to turn to.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu MATLAB Support for MinGW-w64 C/C++ Compiler finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

