l**t 发帖数: 170 | 1 .m文件运行太慢,老板又不给买电脑,让偶
把他们编译成c偶看了help还是不大会
是用mbuild 还是mcc
怎么用这个命令,偶用mcc把.m变成了.c文件再在
vc里编译,它说偶少了一个matlab??.h文件,不能
成功编译,请问到底应该用什么命令编译
偶的.m文件有好多,一个套一个
举个例子吧,test.m 里用了test1.m
偶就用mcc -t -L C test.m test1.m
最后产生了test.c test1.c
但是用vc编译就有问题了
该怎么办?谢谢了 | l***s 发帖数: 11 | 2 我觉得你没搞清楚mcc和mbuild之间的关系.
好像mcc就能完成这种任务吧.
如果说少什么什么.h,应该可以设置添加吧,
vc的话这种问题应该是小菜一碟儿吧.
gcc的话可以用-I -L啊
Examples
Make a C translation and a MEX-file for myfun.m:
mcc -x myfun
Make a C translation and a stand-alone executable for myfun.m:
mcc -m myfun
Make a C++ translation and a stand-alone executable for myfun.m:
mcc -p myfun
Make a C translation and a Simulink S-function for myfun.m
(using dynamically sized inputs and outputs):
mcc -S myfun
Make a C translation and
【在 l**t 的大作中提到】 : .m文件运行太慢,老板又不给买电脑,让偶 : 把他们编译成c偶看了help还是不大会 : 是用mbuild 还是mcc : 怎么用这个命令,偶用mcc把.m变成了.c文件再在 : vc里编译,它说偶少了一个matlab??.h文件,不能 : 成功编译,请问到底应该用什么命令编译 : 偶的.m文件有好多,一个套一个 : 举个例子吧,test.m 里用了test1.m : 偶就用mcc -t -L C test.m test1.m : 最后产生了test.c test1.c
|
|