Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler.
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
krishnamurthy
el 16 de Ag. de 2013
Editada: Walter Roberson
el 13 de Sept. de 2016
MATLAB Version: 8.0.0.783 (R2012b) and using windows 8
I have a simulink model, when i run i get error message as:
Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler.
Then run(in command window) mex -setup
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/R2012b/win64.html
Please choose your compiler for building MEX-files:
Would you like mex to locate installed compilers [y]/n? y
No supported SDK or compiler was found on this computer. For a list of supported compilers, see http://www.mathworks.com/support/compilers/R2012b/win64.html
Error using mex (line 206) Unable to complete successfully.
0 comentarios
Respuesta aceptada
Walter Roberson
el 16 de Ag. de 2013
Which of the compilers listed at that link have you installed ? mex -setup will not download and install the compiler for you: mex -setup is for selecting which compiler you want to use once you have installed one or more compilers.
1 comentario
ehsan
el 12 de Jul. de 2014
look, I did get a compiler recognized. yet the error persists. please help. it's pretty urgent
Más respuestas (1)
Nicola Palavecino
el 13 de Sept. de 2016
Editada: Walter Roberson
el 13 de Sept. de 2016
This video helped me solve the problem:
0 comentarios
Ver también
Categorías
Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!