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编译器,这是什么原因呢
Answers
估计你的是 绿色版的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