Matlab2014a使用VS2015混合编译

matlab的版本要到2015b才支持vs2015,然而本身电脑上用的matlab2014a,和VS2015社区版,不想从新安装,须要替换其mexopts文件夹,估计就相似于一个mexMakefile文件,路径为R2014a\bin\win64\mexopts。下载之,替换便可。mexopts文件夹的下载地址为 http://pan.baidu.com/s/1o8hR926 ,以后作如下步骤编译便可。 html

   

>> mex -setup api

MEX 配置为使用 'Microsoft Visual C++ 2015 Professional (C)' 以进行 C 语言编译。 ui

Warning: The MATLAB C and Fortran API has changed to support MATLAB this

variables with more than 2^32-1 elements. In the near future spa

you will be required to update your code to utilize the code

new API. You can find more information about this at: orm

http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html. htm

   

要选择不一样的语言,请从如下选项中选择一种命令: element

mex -setup C++ get

mex -setup FORTRAN

>> mex -setup C++

MEX 配置为使用 'Microsoft Visual C++ 2015 Professional' 以进行 C++ 语言编译。

Warning: The MATLAB C and Fortran API has changed to support MATLAB

variables with more than 2^32-1 elements. In the near future

you will be required to update your code to utilize the

new API. You can find more information about this at:

http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.

>> mex -v yourfile.cpp

相关文章
相关标签/搜索