冰冻公主 发表于 2007-5-19 19:44

求救,关于COM组件

>> mex -setup
Please choose your compiler for building external interface (MEX) files:

Would you like mex to locate installed compilers /n? y

Select a compiler:
Digital Visual Fortran version 6.0 in C:\Program Files\Microsoft Visual Studio
Lcc C version 2.4 in F:\MATLAB7\sys\lcc
Microsoft Visual C/C++ version 6.0 in C:\Program Files\Microsoft Visual Studio

None

Compiler: 3

Please verify your choices:

Compiler: Microsoft Visual C/C++ 6.0
Location: C:\Program Files\Microsoft Visual Studio

Are these correct?(/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 /n? y

Select a compiler:
Lcc C version 2.4 in F:\MATLAB7\sys\lcc
Microsoft Visual C/C++ version 6.0 in C:\Program Files\Microsoft Visual Studio

None

Compiler: 2

Please verify your choices:

Compiler: Microsoft Visual C/C++ 6.0
Location: C:\Program Files\Microsoft Visual Studio

Are these correct?(/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

Done . . .


--> "F:\MATLAB7\bin\win32\mwregsvr F:\MATLAB7\bin\win32\mwcomutil.dll"

DllRegisterServer in F:\MATLAB7\bin\win32\mwcomutil.dll succeeded

--> "F:\MATLAB7\bin\win32\mwregsvr F:\MATLAB7\bin\win32\mwcommgr.dll"

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
应该怎么办呢,弄了很久,有重装了一遍还是不行,求救啊

eight 发表于 2007-5-19 19:47

原帖由 冰冻公主 于 2007-5-19 19:44 发表 http://www.chinavib.com/forum/images/common/back.gif
>> mex -setup
Please choose your compiler for building external interface (MEX) files:

Would you like mex to locate installed compilers /n? y

Select a compiler:
Digital Visual...


设置顺序:先 mbuild 再 mex

冰冻公主 发表于 2007-5-19 19:51

谢谢你,按照你的方法我试了一下
还是不行,这又怎么办呢
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

eight 发表于 2007-5-19 19:57

Could not find the compiler "cl" on the DOS path

版面搜索一下以上内容,我记得以前讨论过这个问题

冰冻公主 发表于 2007-5-19 20:08

我是初学者,看不太明白啊....我现在用matlab编了M文件,现在用VB做界面,因为还传递函数图象的,上网查了要用COM做VB和MATLAB的接口,现在COM做不了啊,一天了也不知道怎么解决,还有我想问下用COM现在是最新的方法是吗?用别的很复杂?

eight 发表于 2007-5-19 20:16

原帖由 冰冻公主 于 2007-5-19 20:08 发表 http://www.chinavib.com/forum/images/common/back.gif
我是初学者,看不太明白啊....我现在用matlab编了M文件,现在用VB做界面,因为还传递函数图象的,上网查了要用COM做VB和MATLAB的接口,现在COM做不了啊,一天了也不知道怎么解决,还有我想问下用COM现在是最新的 ...

就是让你利用论坛搜索的功能搜索以下内容:Could not find the compiler "cl" on the DOS path

冰冻公主 发表于 2007-5-19 20:19

是不是因为没有安装在系统盘下的问题呢,我的是装在F:\MATLAB这里,选择N然后输入的路径应该是什么呢?

eight 发表于 2007-5-19 20:27

原帖由 冰冻公主 于 2007-5-19 20:19 发表 http://www.chinavib.com/forum/images/common/back.gif
是不是因为没有安装在系统盘下的问题呢,我的是装在F:\MATLAB这里,选择N然后输入的路径应该是什么呢?

估计不是。

怎么我告诉你自己动手搜索一下,你就不去做呢?参考以下帖子:http://www.chinavib.com/forum/archiver/?tid-29598.html

冰冻公主 发表于 2007-5-19 20:33

我搜索了,也看了,好像和我的不怎么一样啊,我就是装了典型安装的MATLAB7.0,装了VB6.0的软件,其他的没有装,用COM是不是还要装其他的东西呢》他们说的msvc60是什么呢?

mahuiyuok 发表于 2007-5-28 21:35

你作成com组件能够调用了吗?我的qq:39353352
页: [1]
查看完整版本: 求救,关于COM组件