Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler.

1 view (last 30 days)
Hi All I have been trying to solve this problem and I see that there are lot of people facing this problem. And I also see that all those who post this question apparently get the same answer 'try mex -setup command'. And I am not really sure as to how many people have benefited from this reply. But unfortunately this method does not really work on my machine. And I don't have admin access to the machine in my school. But I am certainly very very curious to solve this problem as I have been struggling for almost 8 months now.
I highly appreciate your advice
Thanks & Regards
Janardhan

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 20 Oct 2013
Edited: Azzi Abdelmalek on 20 Oct 2013
mex -setup locate compilers if there are any! This is what we check at first. If none of the compilers are found you have to install one http://www.mathworks.com/support/compilers/R2013a/index.html?sec=win64. Also, you will need a Simulink coder . To install them you will need to contact your administrator.
  1 Comment
Lakshmi
Lakshmi on 20 Oct 2013
Hi Azzi,
Thank you for your reply. I understand that mex - setup is to locate and choose the appropriate compiler. There are about 10 compilers on the machine, few of the which are those that are mentioned in the link you have posted in your comment. But unfortunately Matlab doesn't really take any of them. It says done but nothing really works.

Sign in to comment.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!