help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Octave crashes on old MEX-files: how can I detect/prevent this?


From: siko1056
Subject: Re: Octave crashes on old MEX-files: how can I detect/prevent this?
Date: Mon, 5 Dec 2016 02:22:17 -0800 (PST)

AFAIK, there is no function to check a MEX-file to be valid for usage with a
certain version of Octave. If you want to check in advance whether your
version of Octave can handle a MEX-file, say myfunc.mex, try calling

try
  which myfunc
catch(e)
  disp("recompile MEX file!")
  disp(e.message)
end_try_catch

And you'll get errors in the case, that certain dynamic libraries cannot be
loaded, a necessary condition for this MEX-file to run, but not sufficient.

HTH, Kai



--
View this message in context: 
http://octave.1599824.n4.nabble.com/Octave-crashes-on-old-MEX-files-how-can-I-detect-prevent-this-tp4680890p4680891.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]