Compiler Error: Unable to locate compiler while running sumulation

3 vues (au cours des 30 derniers jours)
satendra kumar
satendra kumar le 5 Oct 2013
I have Already installed Visual studio 2012. With all of its components including Visual C++ 2012. But still i am getting the following error- "Error matlab Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler."
  1 commentaire
Image Analyst
Image Analyst le 5 Oct 2013
Modifié(e) : Image Analyst le 5 Oct 2013
You forgot to tell us what it said when you issued the "mex -setup" command like it instructed you to do. Please show that information also. For some reason, either you didn't run that (like it told you to), or you are running it and it's not finding VS2012 for some reason.

Connectez-vous pour commenter.

Réponses (2)

Azzi Abdelmalek
Azzi Abdelmalek le 5 Oct 2013
Modifié(e) : Azzi Abdelmalek le 5 Oct 2013
To select your compiler, type in Matlab command windows
mex -setup

satendra kumar
satendra kumar le 5 Oct 2013
Thanks pal, but Done that already, But Still getting the same error.

Catégories

En savoir plus sur MATLAB Compiler dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by