matlab 配置mex 识别vs2015
生活随笔
收集整理的這篇文章主要介紹了
matlab 配置mex 识别vs2015
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
問題:先安裝了matlab,后裝了vs13和vs15,但是mex -setup時(shí)卻不能識(shí)別vs15,采用了兩種辦法,最終得以識(shí)別。
解決方案:先采用方法: http://blog.csdn.net/yc461515457/article/details/51635842 ,但是沒解決問題,
后面采用了 http://blog.csdn.net/hzd12368/article/details/70526955 ,解決了 問題,在mex -setup中出現(xiàn)了vs2015的選項(xiàng),
>> mex -setup MEX 配置為使用 'Microsoft Visual C++ 2015 Professional (C)' 以進(jìn)行 C 語言編譯。 Warning: The MATLAB C and Fortran API has changed to support MATLABvariables with more than 2^32-1 elements. In the near futureyou will be required to update your code to utilize thenew 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 編譯器,請(qǐng)從以下選項(xiàng)中選擇一種命令: 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要選擇不同的語言,請(qǐng)從以下選項(xiàng)中選擇一種命令:mex -setup C++ mex -setup FORTRAN
解決方案:先采用方法: http://blog.csdn.net/yc461515457/article/details/51635842 ,但是沒解決問題,
后面采用了 http://blog.csdn.net/hzd12368/article/details/70526955 ,解決了 問題,在mex -setup中出現(xiàn)了vs2015的選項(xiàng),
>> mex -setup MEX 配置為使用 'Microsoft Visual C++ 2015 Professional (C)' 以進(jìn)行 C 語言編譯。 Warning: The MATLAB C and Fortran API has changed to support MATLABvariables with more than 2^32-1 elements. In the near futureyou will be required to update your code to utilize thenew 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 編譯器,請(qǐng)從以下選項(xiàng)中選擇一種命令: 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要選擇不同的語言,請(qǐng)從以下選項(xiàng)中選擇一種命令:mex -setup C++ mex -setup FORTRAN
總結(jié)
以上是生活随笔為你收集整理的matlab 配置mex 识别vs2015的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 除了字节,腾讯也来“抢”阿里的这门生意
- 下一篇: QT5.9.9安装教程