Why can not choose SDK Compiler
4 次查看(过去 30 天)
显示 更早的评论
Hi everyone! I have downloaded and installed the Microsoft Windows SDK for Windows 7 (7.1), Microsoft Visual Studio Premium 2012 and Microsoft Visual Studio Professional 2013 with Update 5 on my Dell XPS L521 Laptop, 64-bit Windows 10 Pro. And I also make sure that the SDK environment variables gets set, but it is also unable. I want to use SDK as my compiler, but it is not in the list when I run the command: mex - setup:
>> mex -setup
MEX configured to use 'Microsoft Visual C++ 2012 (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. 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.
To choose a different C compiler, select one from the following:
Microsoft Visual C++ 2012 (C) mex -setup:C:\Users\Sinh\AppData\Roaming\MathWorks\MATLAB\R2015a\mex_C_win64.xml C
Microsoft Visual C++ 2013 Professional (C) mex -setup:'C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\mexopts\msvc2013.xml' C
To choose a different language, select one from the following:
mex -setup C++
mex -setup FORTRAN
**When I click to choose FORTRAN, it have an error message:
Error using mex No supported compiler or SDK was found. For options, visit http://www.mathworks.com/support/compilers/R2015a/win64.html.
How can I add the SDK 7.1 in the list, my Matlab release is Matlab R2015a? Thank you very much!
2 个评论
Walter Roberson
2017-2-16
Michael Epstein: Which operating system are you using, and which compilers do you have installed, and what is the log if you use mex -v -setup ?
采纳的回答
Walter Roberson
2015-9-10
When you click on Fortran you are asking it to configure for Fortran, but you do not have Fortran installed.
I do not know why it is not listing a way to use SDK 7.1.
Could you expand on why you are not using Microsoft Visual C++ 2013 Professional (C) since you have it?
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Troubleshooting in MATLAB Compiler SDK 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!