MATLAB Answers

0

Compiler Error: Unable to locate compiler while running sumulation

Asked by satendra kumar on 5 Oct 2013
Latest activity Answered by satendra kumar on 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 Comment

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.

Sign in to comment.

2 Answers

Answer by Azzi Abdelmalek
on 5 Oct 2013
Edited by Azzi Abdelmalek
on 5 Oct 2013

To select your compiler, type in Matlab command windows
mex -setup

  0 Comments

Sign in to comment.


Answer by satendra kumar on 5 Oct 2013

Thanks pal, but Done that already, But Still getting the same error.

  0 Comments

Sign in to comment.