matlab 配置mex 识别vs2015

版权声明:本文为博主原创文章,转载请注明原地址。 https://blog.csdn.net/xiamentingtao/article/details/77981336
问题:先安装了matlab,后装了vs13和vs15,但是mex -setup时却不能识别vs15,采用了两种办法,最终得以识别。


解决方案:先采用方法:http://blog.csdn.net/yc461515457/article/details/51635842 ,但是没解决问题,
后面采用了http://blog.csdn.net/hzd12368/article/details/70526955 ,解决了 问题,在mex -setup中出现了vs2015的选项,
>> mex -setup
MEX 配置为使用 'Microsoft Visual C++ 2015 Professional (C)' 以进行 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.




要选择不同的 C 编译器,请从以下选项中选择一种命令:
Microsoft Visual C++ 2013 Professional (C)  mex -setup:'D:\Program Files\MATLAB\R2014a\bin\win64\mexopts\msvc2013.xml' C
Microsoft Visual C++ 2015 Professional (C)  mex -setup:C:\Users\dell\AppData\Roaming\MathWorks\MATLAB\R2014a\mex_C_win64.xml C




要选择不同的语言,请从以下选项中选择一种命令:
 mex -setup C++ 
 mex -setup FORTRAN


没有更多推荐了,返回首页