打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
C:/PROGRAM FILES/MATLAB704/BIN/WIN32//../WIN32/MEX.PL: Error: IDL compile of 'mwcomtypes.idl' failed
http://www.mathworks.com/support/solutions/en/data/1-14KC3U/index.html?product=EB&solution=1-14KC3U
Problem Description:
When I try to use the MATLAB Builder for COM or MATLAB Builder for Excel with the Microsoft Visual C++ Compiler 6.0, I receive the error
include
fatal error C1083: Cannot open source file: 'Files/MATLAB704/extern/include': No such file or directory
mwcomtypes.idl
Processing D:/Program Files/MATLAB704/extern/include/mwcomtypes.idl
midl : command line error MIDL1003 : error returned by the C preprocessor (2)
D:/PROGRAM FILES/MATLAB704/BIN/WIN32//../WIN32/MEX.PL: Error: IDL compile of 'mwcomtypes.idl' failed.
When I try to package a COM object using the MATLAB Builder for COM or MATLAB Builder for Excel with Microsoft Visual Studio .NET, an error dialog comes up with the error:
The system cannot find the file specified
Solution:
This bug occurs when the Microsoft Visual C++ Compiler 6.0 is selected. To work around this issue:
1. Run the following command in MATLAB:
mbuild -setup
2. Select the compiler as prompted.
3. Type the following at the MATLAB command prompt:
cd(prefdir)
copyfile('compopts.bat','compopts_old.bat')
edit compopts.bat
4. Edit line 66 of compopts.bat to read
set IDL_COMPILER=midl /nologo /win32 /I C:\Progra~1\MATLAB71\extern\include
[Note: this specification assumes that MATLAB 7.1 has been installed in C:\Program Files\MATLAB71. Change this directory to match your particular installation directory, if different.]
5. Save the compopts.bat file.
6. Run the MCC command.
You must follow steps 1-6 whenever you change the compiler using MBUILD.
NOTE: It is advisable to install MATLAB in a directory without spaces.
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
MATLAB R2016b 安装教程
转帖————关于怎么做matlab的com组件,被vc调用的例子
Matlab选择mingw编译器
在MATLAB7.0中编译与发布可执行文件的详细步骤与一些问题解答
MATLAB2016a启动慢
matlab7.0安装时出现问题解决
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服