声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1837|回复: 9

[混合编程] m文件带有子函数,怎么mcc成exe文件?

[复制链接]
发表于 2008-10-21 14:12 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
我已经搜索了,好像没有人解答类似的问题,高手帮忙呀
回复
分享到:

使用道具 举报

发表于 2008-10-21 14:42 | 显示全部楼层
只要编译主函数就可以。
 楼主| 发表于 2008-10-21 16:30 | 显示全部楼层
主函数是input.M
命令是:
mcc -m input.m

错误信息:??? Error: Cannot compile "input" because it is a built-in MATLAB function.
If you would like to export an interface to the built-in functions via a
shared library, create a wrapper m-function that calls this function and
compile that into your library.
发表于 2008-10-21 18:55 | 显示全部楼层

回复 板凳 疯狂的齿轮 的帖子

input 是matlab的built-in函数
如果是你自己编的,换个名字
 楼主| 发表于 2008-10-21 19:25 | 显示全部楼层
非常感谢,送鲜花
 楼主| 发表于 2008-10-21 21:37 | 显示全部楼层

换个名字 xxl_input还是不行
命令:>> mcc -m xxl_input.m
提示:??? Error: File "xxl_input" is a script M-file and cannot be compiled with the current Compiler.

[ 本帖最后由 疯狂的齿轮 于 2008-10-21 21:41 编辑 ]
发表于 2008-10-21 21:57 | 显示全部楼层

回复 6楼 疯狂的齿轮 的帖子

评分

1

查看全部评分

 楼主| 发表于 2008-10-22 11:19 | 显示全部楼层
没解决,不管vc、vb的事
发表于 2008-10-23 21:43 | 显示全部楼层

回复 8楼 疯狂的齿轮 的帖子

顶起,我也遇到这样的问题,还没有解决,楼主的怎么样了?
发表于 2008-10-24 07:22 | 显示全部楼层
这个问题不太好解决

[ 本帖最后由 nymail 于 2008-10-24 07:24 编辑 ]
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-5-28 23:35 , Processed in 0.057070 second(s), 21 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表