查看完整版本 : [求助] matlab与VC接口设置
guangying
2008-09-25, 15:05
我装的matlab6.5和MS Visual Studio 2005
在matlab中运行mex-setup,出现的却是:
>> mex-setup
Usage:
MEX [option1 ... optionN] sourcefile1 [... sourcefileN]
[objectfile1 ... objectfileN] [libraryfile1 ... libraryfileN]
or (to build an Ada S-function):
MEX [-v] [-g] -ada <sfcn>.ads
Use the -help option for more information, or consult the MATLAB API Guide.
D:\程序盘\MATLAB6.5\BIN\WIN32\MEX.PL: Error: No file names given.
??? Undefined function or variable 'setup'.
哪位大侠给帮个忙,看看是怎么回事?
zipinghappy
2008-10-06, 12:52
我没用vs2005,装了个vc6.0了。大部分资料好像都是vc6.0的。
matlab运行(包括路径)不能识别中文
D:\程序盘\MATLAB6.5\BIN\WIN32\MEX.PL: Error: No file names given.
guangying
2008-10-16, 17:08
现在是这样。
>> 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:\程序盘\MATLAB6.5\sys\lcc
[2] Microsoft Visual C/C++ version 6.0 in D:\程序盘\MS VC++6.0\MSDev98
[0] None
Compiler: 2
Please verify your choices:
Compiler: Microsoft Visual C/C++ 6.0
Location: D:\程序盘\MS VC++6.0\MSDev98
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 'D:\程序盘\MS VC++6.0\MSDev98'.)
The default options file:
"C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R13\mexopts.bat"
is being updated from D:\程序盘\MATLAB6.5\BIN\WIN32\mexopts\msvc60opts.bat...
Installing the MATLAB Visual Studio add-in ...
Warning: Could not update D:\程序盘\MS VC++6.0\MSDev98\common\msdev98\template\MATLABWizard.awx
from D:\程序盘\MATLAB6.5\BIN\WIN32\MATLABWizard.awx
Warning: Could not update D:\程序盘\MS VC++6.0\MSDev98\common\msdev98\template\MATLABWizard.hlp
from D:\程序盘\MATLAB6.5\BIN\WIN32\MATLABWizard.hlp
Warning: Could not update D:\程序盘\MS VC++6.0\MSDev98\common\msdev98\addins\MATLABAddin.dll
from D:\程序盘\MATLAB6.5\BIN\WIN32\MATLABAddin.dll
Warning: Could not update D:\程序盘\MS VC++6.0\MSDev98\common\msdev98\bin\usertype.dat
from D:\程序盘\MATLAB6.5\BIN\WIN32\usertype.dat
Note: One or more components necessary to the operation of the MATLAB Visual
Studio add-in could not be installed. The MATLAB Visual Studio add-in
will not be available, but the rest of this setup operation will
continue normally.
>>
为什么无法更新呢?是我的VC装的不全吗?还是怎么回事?
我装的是VC++6.0简体企业版,matlab6.5
D:\程序盘\MATLAB6.5\BIN\WIN32\MATLABAddin.dll
~~~~
可能含有中文路径的关系
好像根路径有无中文无关
我的路径没中文,但也出现了上面的问题。
>> 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\sys\lcc
[2] Microsoft Visual C/C++ version 6.0 in D:\Program Files\VC++\MSDev98
[0] None
Compiler: 2
Please verify your choices:
Compiler: Microsoft Visual C/C++ 6.0
Location: D:\Program Files\VC++\MSDev98
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 'D:\Program Files\VC++\MSDev98'.)
The default options file:
"C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R13\mexopts.bat"
is being updated from D:\MATLAB\BIN\WIN32\mexopts\msvc60opts.bat...
Installing the MATLAB Visual Studio add-in ...
Warning: Could not update D:\Program Files\VC++\MSDev98\common\msdev98\template\MATLABWizard.awx
from D:\MATLAB\BIN\WIN32\MATLABWizard.awx
Warning: Could not update D:\Program Files\VC++\MSDev98\common\msdev98\template\MATLABWizard.hlp
from D:\MATLAB\BIN\WIN32\MATLABWizard.hlp
Warning: Could not update D:\Program Files\VC++\MSDev98\common\msdev98\addins\MATLABAddin.dll
from D:\MATLAB\BIN\WIN32\MATLABAddin.dll
Warning: Could not update D:\Program Files\VC++\MSDev98\common\msdev98\bin\usertype.dat
from D:\MATLAB\BIN\WIN32\usertype.dat
Note: One or more components necessary to the operation of the MATLAB Visual
Studio add-in could not be installed. The MATLAB Visual Studio add-in
will not be available, but the rest of this setup operation will
continue normally.
chwb1982
2008-11-28, 19:15
我也是一样,和参考书上的差别还是比较大的,
是不是需要有个要编译的文件在当前目录才能够用这个命令 !!!
vBulletin® v3.8.3,版权所有 ©2000-2025,Jelsoft Enterprises Ltd.