matlab编译com问题多多

来源:百度知道 编辑:UC知道 时间:2024/07/16 08:12:42
matlab编译com.大家谁有经验.
Processing E:/MATLAB/extern/include/mwcomtypes.idl
midl : command line error MIDL1003 : error returned by the C preprocessor (-1073741515)

E:/MATLAB/BIN/WIN32//../MEX.PL: Error: IDL compile of 'mwcomtypes.idl' failed.
是什么错误?怎么解决???
--> "midl /nologo /win32 /I E:/MATLAB/extern/include /D "_DEBUG" /out "E:/MATLAB/work/Fourier/src" "mwcomtypes.idl""

Processing E:/MATLAB/extern/include/mwcomtypes.idl
midl : command line error MIDL1003 : error returned by the C preprocessor (-1073741515)

E:/MATLAB/BIN/WIN32//../MEX.PL: Error: IDL compile of 'mwcomtypes.idl' failed.

Creating distrib directory.
Moving files to distrib.
我按照http://www.mathworks.com/support/solutions/data/1-14KC3U.html?1-14KC3U
解决的
如果你是在解决不了,我告诉你解决的办法:
重新安装Matlab,记住安装目录千万不能用空格,比如:
D:\Program Files\Matlab2006a
这种带空格的目录是导致文体的根源。
安装Matlab的时候把目录改成:
D:\Matlab2006a即可,如果你还解决不了,联系我:
wzufme@yahoo.com

你那有没有装VC?在VC下面随便搞个idl,在上面点右键,看看VC为idl添加了什么编译参数就行了。
或者干脆用VC把idl编好了,编好后的文件总能用了吧。也不用你再用命令行了。

要安装vc才能正确编译

安装vc