Matlab2013a中simulink仿真无法启动C编译器的解决方法
来源:互联网 发布:linux竖线怎么打 编辑:程序博客网 时间:2024/06/08 13:55
"Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks.Use 'mex -setup' to select a supported C-compiler."
使用mex -setup 选择VS2012之后还是出错,使用低版本2010a或者高版本2014b时可以运行。
参考Mathworks的官方支持,发现bug及解决方案如下:
Summary
Stateflow charts and MATLAB Function blocks do not work with Microsoft Visual Studio (MSVC) 2012.
Description
When you select Microsoft Visual Studio (MSVC) 2012 as your MEX compiler, you get an error if you try to update a Simulink model that contains Stateflow charts or MATLAB Function blocks. Here is the error message:
"Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks.Use 'mex -setup' to select a supported C-compiler."Workaround
Installation instructions
- Log in to an account with appropriate permissions to overwrite files in your MATLAB installation.
- Locate your MATLAB installation by typing matlabroot at the MATLAB command prompt. This folder is referred to as <MATLAB> in subsequent steps.
- Exit MATLAB.
- Download the attached .zip file associated with this Bug Report and store the file in the <MATLAB> folder.
- Make a backup copy of each of the files listed in the .zip file. To see the contents of the .zip file:
- Windows Systems*: Open the .zip file and look at the contents.
- Extract the files from the .zip file.
- Windows Systems*:
- Open the .zip file.
- Extract the contents of the file to your <MATLAB> folder.
- Delete the .zip file in the <MATLAB> folder.
- Launch MATLAB and run "mex -setup" in the command window. Select MSVC 2012 as the default compiler.
*Notes for Windows Systems:
- If you see “Error: Access is denied” when attempting to extract the .zip file, you may need to start WinZip in administrator mode. Do this by navigating to WinZip.exe or the WinZip Start menu entry, right-clicking on it, and selecting Run as administrator.
- From within WinZip, find and open the downloaded .zip file.
- Extract the contents of the file to your <MATLAB> folder.
Change log::
- May 10, 2013: attachment_931218_13a_2013-05-10.zip: initial version, works on R2013a only.
Fix
This bug was fixed as of R2013b(8.2).
If you have a current subscription to MathWorks Software Maintenance Service (SMS), you can download product updates. If not, learn more about MathWorks SMS.
Attachments
- attachment_931218_13a_2013-05-10.zip
Exists in
或者到这里http://download.csdn.net/detail/u012565167/9767015
- Matlab2013a中simulink仿真无法启动C编译器的解决方法
- Simulink中"连续系统仿真"和"离散系统仿真"的区别
- Matlab\Simulink仿真中遇到的代数环问题
- 关于win8中c-free等编译器调试时无法显示输出的解决方法
- Simulink仿真命令的应用
- 用Simulink进行仿真遇到的一些问题以及相应的解决方法整理
- Xampp中Apache无法启动的解决方法
- windowsXP中apache无法启动的解决方法
- xampp中Apache无法启动的解决方法
- Xampp中Apache无法启动的解决方法
- Xampp中apache无法启动的解决方法
- Xampp中Apache无法启动的解决方法
- 32位matlab2013a中使用vs2013编译器失败
- Vs2005无法连接仿真设备的解决方法
- simulink/matlab仿真异步电机的动态模型
- matlab2013a 中 mex代码的升级问题
- 复制Simulink中的仿真模型到word中形成矢量图的方法(图像很清楚)
- simulink电机模型仿真设计报“您的模型中没有电气测量”警告
- linux文件权限学习 包括 特殊权限
- Vue2.0 新手完全填坑攻略——从环境搭建到展示豆瓣的电影列表
- Linux下快速搭建DNS服务器
- linux设备驱动归纳总结(三):2.字符型设备的操作open、close、read、write
- Android:控件WebView显示网页
- Matlab2013a中simulink仿真无法启动C编译器的解决方法
- /etc/passwd&&/etc/shadow
- 自己编的shell脚本,实现备份文本内容(目的:学习交流)
- qaz718035146 是我,我说错了!!现在有真相,明白了!
- +-小数四舍五入c代码---
- Jdk配置
- pthread-生产消费.c -----注释
- javah -jni org.cocos2dx.cpp.JniTest 错误: 找不到 'org.cocos2dx.cpp.JniTest' 的类文件。
- Linux stat函数讲解