Clear Filters
Clear Filters

Why can not choose SDK Compiler

3 views (last 30 days)
sinh
sinh on 10 Sep 2015
Commented: Walter Roberson on 16 Feb 2017
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 Comments
Michael Epstein
Michael Epstein on 16 Feb 2017
same problem here --- I'm not finding an answer yet.
Walter Roberson
Walter Roberson on 16 Feb 2017
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 ?

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 10 Sep 2015
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?

More Answers (0)

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!