How to help Stateflow locate the C-compiler?
1 view (last 30 days)
Show older comments
When I try to run any model in which Stateflow components are used, I get the following error:
"Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler."
Even after running 'mex -setup' as suggested in the error message and choosing the compiler, the error persists!
Any idea how to help Stateflow locate the C-compiler?
0 Comments
Answers (2)
Guru
on 6 Jul 2013
If you are having problems after running mex -setup, then the path to the C compiler is incorrect, thus it cannot find the C compiler in question. Check your environment variables for the C compiler and make sure that the C compiler is in the folder where Mex -setup is stating.
Kaustubha Govind
on 17 Jul 2013
Since you are using Microsoft Visual C++ 2012 in R2013a, you might be affected by Bug #931218. Please see if installing the patch fixes the issue.
1 Comment
Ahmed AlTaie
on 28 Jan 2015
I followed the link but still not working can you help me to do it step by step..... thanks
See Also
Categories
Find more on Troubleshooting in MATLAB Compiler SDK in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!