我要用matlab7.0做毕业设计,在刚装上的时候要建立两个C的接口文件,分别为afdtdpbg.c和fdtdpbg.c,执行步骤为先把它们贴到MATLAB的WORK目录下面,然后打开MATLAB,输入mex afdtdpbg.c回车,选数字2;再输入mex fdtdpbg.c,回车,理论上是应该出现两个.DLL文件,即借口文件,可是却出现下面的报错,
To get started, select MATLAB Help or Demos from the Help menu.
>> mex afdtdpbg.c
D:\1\BIN\WIN32\MEX.PL: Error: Compile of 'afdtdpbg.c' failed.
??? Error using ==> mex
Unable to complete successfully
To get started, select MATLAB Help or Demos from the Help menu.
>> 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 D:\MATLAB7.0\sys\lcc
[2] Microsoft Visual C/C++ version 6.0 in E:
[0] None
Compiler: 2
Please verify your choices:
Compiler: Microsoft Visual C/C++ 6.0
Location: E:
Are these correct?([y]/n): y
Warning: Mbuild requires that the Microsoft Visual C++ 6.0
directories "VC98" and "Common" be located within the same parent directory.
(Expected to find a directory named "Common" in the directory 'E:'.)
Try to update options file: C:\Documents and Settings\xiaowei\Application Data\MathWorks\MATLAB\R14\compopts.bat
From template: D:\MATLAB7.0\BIN\WIN32\mbuildopts\msvc60compp.bat
DllRegisterServer in D:\MATLAB7.0\bin\win32\mwcommgr.dll succeeded
>> 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:\MATLAB7.0\sys\lcc
[2] Microsoft Visual C/C++ version 6.0 in E:
[0] None
Compiler: 3
Please select from 0-2
Compiler: 2
Please verify your choices:
Compiler: Microsoft Visual C/C++ 6.0
Location: E:
Are these correct?([y]/n): y
Warning: Mex requires that the Microsoft Visual C++ 6.0
directories "VC98" and "Common" be located within the same parent directory.
(Expected to find a directory named "Common" in the directory 'E:'.)
Try to update options file: C:\Documents and Settings\xiaowei\Application Data\MathWorks\MATLAB\R14\mexopts.bat
From template: D:\MATLAB7.0\BIN\WIN32\mexopts\msvc60opts.bat
Done . . .
>> mex afdtdpbg.c
D:\MATLAB7.0\BIN\WIN32\MEX.PL: Error: Compile of 'afdtdpbg.c' failed.
??? Error using ==> mex
Unable to complete successfully
Warning: Mbuild requires that the Microsoft Visual C++ 6.0
directories "VC98" and "Common" be located within the same parent directory.
(Expected to find a directory named "Common" in the directory 'E:'.)
Try to update options file: C:\Documents and Settings\xiaowei\Application Data\MathWorks\MATLAB\R14\compopts.bat
From template: D:\MATLAB7.0\BIN\WIN32\mbuildopts\msvc60compp.bat