>> 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] Digital Visual Fortran version 6.0 in C:\Program Files\Microsoft Visual Studio
[2] Lcc C version 2.4 in F:\MATLAB7\sys\lcc
[3] Microsoft Visual C/C++ version 6.0 in C:\Program Files\Microsoft Visual Studio
[0] None
Compiler: 3
Please verify your choices:
Compiler: Microsoft Visual C/C++ 6.0
Location: C:\Program Files\Microsoft Visual Studio
Are these correct?([y]/n): y
Try to update options file: C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R14\mexopts.bat
From template: F:\MATLAB7\BIN\WIN32\mexopts\msvc60opts.bat
Done . . .
>> >> mbuild -setup
Please choose your compiler for building standalone MATLAB applications:
Would you like mbuild to locate installed compilers [y]/n? y
Select a compiler:
[1] Lcc C version 2.4 in F:\MATLAB7\sys\lcc
[2] Microsoft Visual C/C++ version 6.0 in C:\Program Files\Microsoft Visual Studio
[0] None
Compiler: 2
Please verify your choices:
Compiler: Microsoft Visual C/C++ 6.0
Location: C:\Program Files\Microsoft Visual Studio
Are these correct?([y]/n): y
Try to update options file: C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R14\compopts.bat
From template: F:\MATLAB7\BIN\WIN32\mbuildopts\msvc60compp.bat
DllRegisterServer in F:\MATLAB7\bin\win32\mwcommgr.dll succeeded
按照这个设置了以后打开comtool
build-COM object 以后还是出现
Building COM object...
mcc -M -silentsetup -d 'F:/MATLAB7/work/a/src' -B 'ccom:a,aclass,1.0' -g -i 'C:/Documents and Settings/Administrator/My Documents/030150102/丁/yy.m'
To get started, select <a href="matlab: doc">MATLAB Help</a> or <a href="matlab: demo matlab">Demos</a> from the Help menu.
The -i switch is no longer supported; the include exported interfaces behavior
is applied to every compilation.
Warning: No matching builtin function available for F:/MATLAB7/toolbox/simulink/simulink/set_param.bi
> In <a href="error:F:/MATLAB7/toolbox/compiler/cmptool.m,1032,1">cmptool>build at 1032</a>
Could not find the compiler "cl" on the DOS path.
Use mbuild -setup to configure your environment properly.
F:/MATLAB7/BIN/WIN32/MEX.PL: Error: Unable to locate compiler.
??? Error using ==> mbuild
Unable to complete successfully
应该怎么办呢,弄了很久,有重装了一遍还是不行,求救啊
谢谢你,按照你的方法我试了一下
还是不行,这又怎么办呢
Building COM object...
mcc -M -silentsetup -d 'F:/MATLAB7/work/bb/src' -B 'ccom:bb,bbclass,1.0' -g -i 'C:/Documents and Settings/Administrator/My Documents/030150102/丁/yy.m'
To get started, select <a href="matlab: doc">MATLAB Help</a> or <a href="matlab: demo matlab">Demos</a> from the Help menu.
The -i switch is no longer supported; the include exported interfaces behavior
is applied to every compilation.
Warning: No matching builtin function available for F:/MATLAB7/toolbox/simulink/simulink/set_param.bi
> In <a href="error:F:/MATLAB7/toolbox/compiler/cmptool.m,1032,1">cmptool>build at 1032</a>
Could not find the compiler "cl" on the DOS path.
Use mbuild -setup to configure your environment properly.
F:/MATLAB7/BIN/WIN32/MEX.PL: Error: Unable to locate compiler.
??? Error using ==> mbuild
Unable to complete successfully