Why can not choose SDK Compiler

3 visualizaciones (últimos 30 días)
sinh
sinh el 10 de Sept. de 2015
Comentada: Walter Roberson el 16 de Feb. de 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 comentarios
Michael Epstein
Michael Epstein el 16 de Feb. de 2017
same problem here --- I'm not finding an answer yet.
Walter Roberson
Walter Roberson el 16 de Feb. de 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 ?

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 10 de Sept. de 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?

Más respuestas (0)

Categorías

Más información sobre MATLAB Compiler en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by