码迷,mamicode.com
首页 > 其他好文 > 详细

Matlab2014a使用VS2015混合编译

时间:2017-02-20 11:34:44      阅读:437      评论:0      收藏:0      [点我收藏+]

标签:extern   ssi   ext   htm   api   下载   win64   c++   support   

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

   

>> 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.

   

要选择不同的语言,请从以下选项中选择一种命令:

mex -setup C++

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

   

Matlab2014a使用VS2015混合编译

标签:extern   ssi   ext   htm   api   下载   win64   c++   support   

原文地址:http://www.cnblogs.com/Yan47/p/6418129.html

(1)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!