Clear Filters
Clear Filters

issue related to mex file in matlab

1 view (last 30 days)
Sujeet Mishra
Sujeet Mishra on 6 Jan 2012
Hi , I have a mex file corresponding to a .cpp file generated from MATLAb version R2011b .But my Matlab setup is R2011a .I am getting an error like "Invalid MEX-file" while running the file in my MATLAB setup ...Is it because of version change ...Is the mex file not backward compatible ???

Answers (1)

James Tursa
James Tursa on 6 Jan 2012
In general, mex routines are not backward or forward compatible. It all depends on what versions you are running, which OS you are using, and what the mex routine is doing. And I am not aware of any reference you can consult to determine what to avoid & how to make the mex routine portable. In some cases it simply will not be possible. The generic advice is to recompile.

Categories

Find more on Write C Functions Callable from MATLAB (MEX Files) in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!