The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: MEX files Matlab version dependent?
Replies: 1   Last Post: Jan 23, 2013 5:08 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
James Tursa

Posts: 2,326
Registered: 8/5/09
Re: MEX files Matlab version dependent?
Posted: Jan 23, 2013 5:08 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Chuck37" wrote in message <kdp52g$kqq$>...
> I have some mex files I made with codegen and they run fine for me running 2012b. If I try to run them on the same machine using 2012a they crash with an undefined symbol error. Is this the expected behavior, that MEX files are not backwards compatible with matlab versions?

Unfortunately, mex routines are not in general portable between MATLAB versions. Sometimes they work and sometimes they don't depending on which MATLAB routines they attempt to access and how those routines work (which you don't have any control over). Your only solution is to re-compile for the other version.

James Tursa

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.