How to help Stateflow locate the C-compiler?
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(2 个)
Guru
2013-7-6
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
2013-7-17
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 个评论
Ahmed AlTaie
2015-1-28
I followed the link but still not working can you help me to do it step by step..... thanks
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Troubleshooting in MATLAB Compiler SDK 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!