登录论坛

查看完整版本 : [求助] 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的。

萌志
2008-10-11, 23:08
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

dongnan
2008-10-23, 22:20
我的7.1版本也遇到这个问题
同问,期待中

lmmf
2008-10-26, 12:19
没用过mcc,我用的是matcom

pasuka
2008-11-20, 21:28
D:\程序盘\MATLAB6.5\BIN\WIN32\MATLABAddin.dll
~~~~
可能含有中文路径的关系

未注册
2008-11-23, 10:35
好像根路径有无中文无关
我的路径没中文,但也出现了上面的问题。
>> 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.

bigboyx
2008-11-26, 10:07
学习中,编译也难到我了。。。。。。。。。。。。。

看看想想~
2008-11-27, 22:28
我也是这样的问题啊 有没人出来解答一下啊~~~

chwb1982
2008-11-28, 19:15
我也是一样,和参考书上的差别还是比较大的,
是不是需要有个要编译的文件在当前目录才能够用这个命令 !!!