加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

matlab无法找到C编译器问题的解决方法

(2017-06-23 18:36:28)
from: http://www.ilovematlab.cn/thread-30526-1-1.html
我也碰到过这种问题
解决方法很简单
1、确认安装有VC
2、如果安装有VC,在出现
Please choose your compiler for building external interface (MEX) files: 

Would you like mex to locate installed compilers [y]/n? 
的时候输入n
3、此时会列出matlab支持的编译器
[1] Intel C++ 9.1 (with Microsoft Visual C++ 2005 SP1 linker) 
[2] Intel Visual Fortran 10.1 (with Microsoft Visual C++ 2005 SP1 linker) 
[3] Intel Visual Fortran 9.1 (with Microsoft Visual C++ 2005 SP1 linker) 
[4] Lcc-win32 C 2.4.1 
[5] Microsoft Visual C++ 6.0 
[6] Microsoft Visual C++ .NET 2003 
[7] Microsoft Visual C++ 2005 SP1 
[8] Microsoft Visual C++ 2008 Express 
[9] Microsoft Visual C++ 2008 SP1 
[10] Open WATCOM C++ 

[0] None 
选择安装的VC版本(我装的是VS2005)
5、选择完成之后,会要求指定VC的安装目录
The default location for Microsoft Visual C++ 2005 SP1 compilers is C:\Program Files\Microsoft Visual Studio 8, 
but that directory does not exist on this machine.  

Use C:\Program Files\Microsoft Visual Studio 8 anyway [y]/n? 
如果安装目录是自动搜索到的目录C:\Program Files\Microsoft Visual Studio 8 anyway,则输入y,否则输入n,然后手动输入VC安装目录
OK 呵呵

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有