Legacy MEX infrastructure is provided for compatibility

空扰寡人 提交于 2019-12-13 17:52:32

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!