<P>我想将M文件通过COM生成器组件放到VB中应用,但是在生成工程时就出现问题了</P>
<P>Build Status框出现<BR>mcc-M-silentsetup -d 'D:/matlab/word/magicdemo/src'-B'ccom:magicdemo,magicdemo,1.0'-i D:/matlab/word/mymagic.m mbuild is choosing an appropriate compiler...<BR>Modification of non-creatable array value attempted,subscript-1 at D:/matlab/win32/mexsetup.pm line 625</P>
<P>Error Dialog框出现</P>
<P>Error using ==> comtool(build)<BR>Error: An error occurred while shelling out to mbuild(error code=1).<BR>Unable to build executable (specify the -v option for more information).<BR><BR>我用的是6.5 是按书上步骤做的,M文件肯定没问题,为什么还会出现这种情况呢?</P>
在Matlab的Command Window中输入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-win32 C 2.4.1 in D:\PROGRA~1\MATLAB\R2008a\sys\lcc\bin
[2] Microsoft Visual C++ 6.0 in D:\Program Files\Microsoft Visual Studio
[0] None
Compiler:
输入2
出现
Please verify your choices:
Compiler: Microsoft Visual C++ 6.0
Location: D:\Program Files\Microsoft Visual Studio