vc 和matlab,该如何处理


vc 和matlab
电脑安装了VC6.0,在matlab中输入mex -setup,结果如下:

>> mex -setup
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 C version 2.4 in D:\MATLAB\MATLAB7.0\sys\lcc 
 
[0] None 


请问没有VC编译器,这是什么原因呢

c语言 基本概念 程序开发

英俊的小帅哥 13 years, 9 months ago


<fieldset> <legend> 探讨 </legend>

这个按照你的可以了,可是后面输入mbuild-setup,
出来的选项里也没有VC6.0,这又是怎么回事呢?这里也没有可以自己指定路径的


引用:
估计你的是 绿色版的vc6

mex -setup

不要选择 Y, 选择 N,指定 编译器,指定目录。另外,某些山寨编译器,也不支持的,官网有支持的编译器列表。


Welcome to mex -set……
</fieldset>
小桧山七星 answered 13 years, 9 months ago




link:






查看 matlab 支持的 编译器列表。


其中: MATLAB Product Family – Release 2012a 已经不支持 VC6 这种 山寨 Compiler


蓝色的眷念 answered 13 years, 9 months ago


估计你的是 绿色版的vc6

 mex -setup

不要选择 Y, 选择 N,指定 编译器,指定目录。另外,某些山寨编译器,也不支持的,官网有支持的编译器列表。

 
Welcome to mex -setup. This utility will help you set up
a default compiler. For a list of supported compilers, see
;
 
Please choose your compiler for building MEX-files: 
 
Would you like mex to locate installed compilers [y]/n n
 
Select a compiler: 
[1] Intel C++ 12.0 (with Microsoft Software Development Kit (SDK) linker) 
[2] Intel C++ 12.0 (with Microsoft Visual C++ 2008 SP1 linker) 
[3] Intel C++ 12.0 (with Microsoft Visual C++ 2010 linker) 
[4] Intel C++ 11.1 (with Microsoft Visual C++ 2008 SP1 linker) 
[5] Intel Visual Fortran 12 (with Microsoft Software Development Kit (SDK) linker) 
[6] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2008 SP1 linker) 
[7] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2008 Shell linker) 
[8] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2010 linker) 
[9] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 SP1 linker) 
[10] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 Shell linker) 
[11] Microsoft Software Development Kit (SDK) 7.1 
[12] Microsoft Visual C++ 2005 SP1 
[13] Microsoft Visual C++ 2008 SP1 
[14] Microsoft Visual C++ 2010 
 
[0] None 
 
------然后选择........--------





本电脑上。没有安装VC6 。 说实在的,VC6,山寨编译器,性能差,该弃用了
Select a compiler: 
[1] Intel C++ 12.0 (with Microsoft Visual C++ 2010 linker) in C:\Program Files (x86)\Intel\ComposerXE-2011\ 
[2] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2010 linker) in C:\Program Files (x86)\Intel\ComposerXE-2011\ 
[3] Microsoft Visual C++ 2010 in C:\Program Files (x86)\Microsoft Visual Studio 10.0 
 
[0] None

怎么这么天才 answered 13 years, 9 months ago

Your Answer