issue related to mex file in matlab

1 次查看(过去 30 天)
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 ???

回答(1 个)

James Tursa
James Tursa 2012-1-6
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.

类别

Help CenterFile Exchange 中查找有关 Write C Functions Callable from MATLAB (MEX Files) 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by