一.安装与设置matlab的编译器
在MATLAB 命令窗口 输入 mbuild -setup时,若有VS2008 SP1的选项,直接选择该编译器即可。
若没有VS2008的选项,只显示如下结果:
Please choose your compiler for building external interface (MEX) files:
Would you like mex to locate installed compilers [y]/n? y
Select a compiler:
[1] Lcc-win32 C 2.4.1 in F:\PROGRA~1\MATLAB\R2008a\sys\lcc\bin
[0] None
Compiler:
根本就没有提VC编译器的选项呀。
这是为什么呀?
解决办法:
解决方法很简单
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(你没有看错,是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
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余1页未读,立即下载