问题
There is this warning kind of message when compiling mexFunction
files using the mex
command in Matlab 2014b.
Legacy MEX infrastructure is provided for compatibility; it will be removed in a future version of MATLAB.
What is this supposed to mean? There comes a link with this message, but I did not find something useful. Also this question did not make me more wise.
Will the MEX API vanish? Will there be a different interface? What is going to change exactly? Can anybody tell?
回答1:
The message Legacy MEX infrastructure is provided for compatibility; it will be removed in a future version of MATLAB.
just means that the way of setting up MEX with mexopts.bat
(Windows) and mexopts.sh
(*NIX and MAC) is deprecated and an XML based configuration system ("infrastructure" in their words) will be used going forward. Note that it is not removed yet, just deprecated - you can continue to configure with mexopts.bat
but it will bug you about it.
For some suggestions on how to make your own XML, see this answer, just to get started. You will have to do some trial and answer since the intuitive Makefile-like organization of mexopts.bat is gone and replaced with a more complicated system involving automated searches, environment variable reads, etc.
来源:https://stackoverflow.com/questions/27329963/legacy-mex-infrastructure-is-provided-for-compatibility