Invalid Mex file error

4 Ansichten (letzte 30 Tage)
meriem nachidi
meriem nachidi am 10 Sep. 2021
Beantwortet: Anurag Ojha am 7 Mai 2024
hello all,
Invalid MEX-file '/Users/Documents/optispline/splinesMEX.mexmaci64':
dlopen(/Users/Documents/optispline/splinesMEX.mexmaci64, 6): Symbol not found:
__ZTISt16invalid_argument
Referenced from: /Users/Documents/optispline/splinesMEX.mexmaci64
Expected in: /Applications/MATLAB_R2020a.app/bin/maci64/libmx.dylib
in /Users/Documents/optispline/splinesMEX.mexmaci64
can any one help my
Thank you

Antworten (1)

Anurag Ojha
Anurag Ojha am 7 Mai 2024
Hello Meriem
The error you are encountering can be caused if there is compatibly issue between the version of MATLAB you are using and the version that was used to create the MEX File.
Here is a snippet from MATLAB's MEX version compatibilty documentation:
"For best results, your version of MATLAB must be the same version that was used to create the MEX-file.
MEX-files use MATLAB runtime libraries. MEX-files are usually backward compatible, which means you can run a MEX-file that was created on an earlier version of MATLAB on later versions of MATLAB. If the MEX-file generates errors, recompile the MEX-file from the source code."
Adding documentation for your reference:
To resolve the error, try recompiling the MEX file in the same version as your MATLAB.

Kategorien

Mehr zu Write C Functions Callable from MATLAB (MEX Files) finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by