How to solve this error as mentioned- "Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler"
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Mahua
le 1 Sep 2013
Réponse apportée : Salman Khalidi
le 5 Juin 2016
Error-Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler.
My laptop is Windows 8(genuine) 64 bit. I am trying to run my code in MATLAB R2013a which is having State flow charts and S function parameter block. I have gone through the matlab forums to get the solution for this but it is not working. please suggest me the correct way to solve this.
0 commentaires
Réponse acceptée
Walter Roberson
le 1 Sep 2013
What happens when, at the MATLAB command line, you give the command
mex -setup
Plus de réponses (1)
Salman Khalidi
le 5 Juin 2016
I am also facing this problem. but i am using Matlab R2012b. I have also installed the supported compiler for this version i.e. Microsoft windows SDK 7.1 but problem persist. Still same error occur >> 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 commentaires
Voir également
Catégories
En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!