在matlab 2008中编译报告函数返回错误
我正在尝试创建 matlab 可执行文件来构建报告。
我的功能是
function custom_report( FilePath )
report('MyReport.rpt', ['-o' FilePath],'-fpdf') ;
尝试构建此独立可执行文件(exe 文件)时出现部署工具重新运行错误。 造成这个问题的原因是什么?
ps 我将“MyReport.rpt”文件附加到了deploytool 项目中,所以这可能不是原因。
% Deploytool Build Errors:
Error C:\Algo\customreport\src\customreport_main.c: 16 syntax error; found `__MCC_customreport_component_data' expecting `;'
Error C:\Algo\customreport\src\customreport_main.c: 103 left operand of . has incompatible type `int'
Error C:\Algo\customreport\src\customreport_main.c: 103 operands of = have illegal types `int' and `pointer to char'
Error C:\Algo\customreport\src\customreport_main.c: 117 left operand of . has incompatible type `int'
Error C:\Algo\customreport\src\customreport_main.c: 117 type error in argument 1 to `mclInitializeApplication_proxy'; found `int' expected `pointer to pointer to const char'
Error C:\Algo\customreport\src\customreport_main.c: 118 left operand of . has incompatible type `int'
I'm trying to create matlab executable for building a report.
My function is
function custom_report( FilePath )
report('MyReport.rpt', ['-o' FilePath],'-fpdf') ;
but the deploytool retrun error when trying to build this standalone executable (exe file).
What can be the cause of this problem?
p.s. I attached the 'MyReport.rpt' file to the deploytool project, so it's probably not the cause.
% Deploytool Build Errors:
Error C:\Algo\customreport\src\customreport_main.c: 16 syntax error; found `__MCC_customreport_component_data' expecting `;'
Error C:\Algo\customreport\src\customreport_main.c: 103 left operand of . has incompatible type `int'
Error C:\Algo\customreport\src\customreport_main.c: 103 operands of = have illegal types `int' and `pointer to char'
Error C:\Algo\customreport\src\customreport_main.c: 117 left operand of . has incompatible type `int'
Error C:\Algo\customreport\src\customreport_main.c: 117 type error in argument 1 to `mclInitializeApplication_proxy'; found `int' expected `pointer to pointer to const char'
Error C:\Algo\customreport\src\customreport_main.c: 118 left operand of . has incompatible type `int'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论