I am getting the below mentioned problem when I am simulating "Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler."
1 次查看(过去 30 天)
显示 更早的评论
I am getting the below mentioned problem when I am simulating "Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler."
0 个评论
采纳的回答
Mischa Kim
2014-2-6
Shailesh, as the msg implies you need to tell MATLAB which compiler should be used. Which, of course, means that there needs to be at least one compiler installed on your system. Then simply run
mex -setup
in the command window and choose the/a compiler.
更多回答(1 个)
Alexander
2014-2-6
If you run "mex -setup" from the matlab command line it should give you the option to specify a compiler, if you have one. If you don't already have one installed, you can download and install the Microsoft SDK or Visual C++ express.
另请参阅
类别
在 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!