huixue 发表于 2009-4-7 17:32

生成COM组件时老是出现问题

请高手 帮我解决急需答案谢谢!!
在用MATLAB6.5生成COM组件是总是出现下面错误,
错误对话框显示:
Error= =>comtool(build)
Error: File”aa”is a script M-file and cannot be compiled with the current Compiler.

BuildStatus 框中显示:
Building standalone executable...
mcc -M -silentsetup -d 'C:/MATLAB6p5/work/tu/src' -v -B 'csglcom:tu,tu,3.0' -g -i C:/MATLAB6p5/work/aaaaa.m   
Compiler version: 3.0
Parsing file "c:/matlab6p5/work/aaaaa.m"
        (Referenced from: "Compiler Command Line").

ChaChing 发表于 2009-4-7 20:38

COM组件这个东西从没玩过!
从错误讯息看, 是否不能是script M-file, 也就是一定是function M-file?
待高人确认!

dgxw82544514 发表于 2009-4-8 15:16

回复

楼主的问题,我原来遇见过,因为时间久远,忘了具体步骤,但做COM控件注意重要问题:
编辑器的问题
必须设置好编辑器,最好路径不要有中文和空格,问题搜了搜,
      建议看http://www.cnblogs.com/tutuya/articles/394319.aspx 这个连接
希望对您有所帮助。

娜娜张 发表于 2009-4-8 20:17

应该是要用function 不能编译脚本语言
页: [1]
查看完整版本: 生成COM组件时老是出现问题