Problems in compiling with MATLAB

3 visualizaciones (últimos 30 días)
Sergio Ferro
Sergio Ferro el 3 de Abr. de 2020
Comentada: Sergio Ferro el 8 de Abr. de 2020
I have Matlab 2012a 32 bits with a compilation toolbox.
I have been able to complie with no problem for a long time.
All of a sudden when I try to compile (same command line that worked ok a month ago), I get the following error:
No supported SDK or compiler was found on this computer.
For a list of supported compilers, see
http://www.mathworks.com/support/compilers/R2012a/win32.html
Error: An error occurred while shelling out to mbuild (error code = 1).
Unable to build executable (specify the -v option for more information).
I tried mex -setup and let mex to locate installed compilersr... It couldn't find it:
Welcome to mex -setup. This utility will help you set up
a default compiler. For a list of supported compilers, see
http://www.mathworks.com/support/compilers/R2012a/win32.html
Please choose your compiler for building MEX-files:
Would you like mex to locate installed compilers [y]/n? y
Select a compiler:
[1] Lcc-win32 C 2.4.1 in C:\PROGRA~1\MATLAB\R2012A~2\sys\lcc
[0] None
I tried again, not letting mex locate the compiler... it seems to find it but then an error is found:
Welcome to mex -setup. This utility will help you set up
a default compiler. For a list of supported compilers, see
http://www.mathworks.com/support/compilers/R2012a/win32.html
Please choose your compiler for building MEX-files:
Would you like mex to locate installed compilers [y]/n? n
Select a compiler:
[1] Intel C++ 12.0 (with Microsoft Software Development Kit (SDK) linker)
[2] Intel C++ 12.0 (with Microsoft Visual C++ 2008 SP1 linker)
[3] Intel C++ 12.0 (with Microsoft Visual C++ 2010 linker)
[4] Intel C++ 11.1 (with Microsoft Visual C++ 2008 SP1 linker)
[5] Intel Visual Fortran 12 (with Microsoft Software Development Kit (SDK) linker)
[6] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2008 SP1 linker)
[7] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2008 Shell linker)
[8] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2010 linker)
[9] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 SP1 linker)
[10] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 Shell linker)
[11] Lcc-win32 C 2.4.1
[12] Microsoft Software Development Kit (SDK) 7.1
[13] Microsoft Visual C++ 2005 SP1
[14] Microsoft Visual C++ 2008 SP1
[15] Microsoft Visual C++ 2010
[16] Open WATCOM C++
[0] None
Compiler: 7
Your machine has a Intel Visual Fortran compiler located at
C:\Program Files (x86)\Intel\ComposerXE-2011\. Do you want to use this compiler [y]/n? y
Please verify your choices:
Compiler: Intel Visual Fortran 12.0
Location: C:\Program Files (x86)\Intel\ComposerXE-2011\
Are these correct [y]/n? y
Error: Microsoft Visual C++ 2008 Shell was not found by mex -setup.
The Microsoft Visual C++ 2008 Shell linker is required to
build Intel Fortran MEX-files. Please make sure that the
Microsoft Visual C++ 2008 Shell is installed properly.
It seems that the compiler is not properly/completely installed. However I used it for years till last month approximately. Any help will be welcome. Thank you

Respuestas (1)

Harshendra Shah
Harshendra Shah el 8 de Abr. de 2020
Editada: Harshendra Shah el 8 de Abr. de 2020
It looks like Microsoft Visual C++ 2008 Shell (32-bit) is not installed properly on your machine.
Intel Visual Fortan is depended on Microsoft Visual Studio 2008 SP1 Professional Edition (32-bit) and Microsoft Visual C++ 2008 Shell (32-bit) for some of the tools provided by Microsoft development products. Hence it is required to have both of these tools installed in the system in order to use Intel Visual Fortan.
Please check the 3rd point in the ‘Notes for the Windows (32-bit) Platform’ section of the following documentation page:
I suggest you to re-install Microsoft Visual C++ 2008 Shell (32-bit) and try to do mex -setup again.
I hope this helps.
  1 comentario
Sergio Ferro
Sergio Ferro el 8 de Abr. de 2020
Thank you for your answer.
Fortunately, matlab support team solved the problem yesterday

Iniciar sesión para comentar.

Categorías

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

Etiquetas

Productos


Versión

R2012a

Community Treasure Hunt

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

Start Hunting!

Translated by