matlab2017 搭配vs2015 mex 设置

matlab2017安装matconvnet-1.0-beta25

然后,运行matlab/vl_compilenn.m,结果总是提示

Error using vl_compilenn>check_compability (line 535)
Unsupported VS C++ compiler, ver >=14.0 required (VS 2015).

Error in vl_compilenn (line 197)
check_compability(arch);


输入: mbuild -setup

MBUILD configured to use 'Microsoft Visual C++ 2015 Professional (C)' for C language compilation.


To choose a different C compiler, select one from the following:
Microsoft Visual C++ 2012 (C)  mex -setup:D:\Matlab17\bin\win64\mexopts\msvc2012.xml C -client MBUILD
Microsoft Visual C++ 2013 Professional (C)  mex -setup:D:\Matlab17\bin\win64\mexopts\msvc2013.xml C -client MBUILD
Microsoft Visual C++ 2015 Professional (C)  mex -setup:C:\Users\wzy\AppData\Roaming\MathWorks\MATLAB\R2017a\MBUILD_C_win64.xml C -client MBUILD


To choose a different language, select one from the following:
 mex -setup C++ -client MBUILD 
 mex -setup FORTRAN -client MBUILD




输入:mex -setup
MEX configured to use 'Microsoft Visual C++ 2015 Professional (C)' for C language compilation.
Warning: The MATLAB C and Fortran API has changed to support MATLAB
 variables with more than 2^32-1 elements. 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.


To choose a different C compiler, select one from the following:
Microsoft Visual C++ 2012 (C)  mex -setup:D:\Matlab17\bin\win64\mexopts\msvc2012.xml C
Microsoft Visual C++ 2013 Professional (C)  mex -setup:D:\Matlab17\bin\win64\mexopts\msvc2013.xml C
Microsoft Visual C++ 2015 Professional (C)  mex -setup:C:\Users\wzy\AppData\Roaming\MathWorks\MATLAB\R2017a\mex_C_win64.xml C


To choose a different language, select one from the following:
 mex -setup C++ 
 mex -setup FORTRAN

都改成vs2015了呀,为什么还是有问题? 

忽然我点了一下  mex -setup C++ ,然后选择vs2015,再运行vl_compilenn 居然就好了



  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值