声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1354|回复: 1

[混合编程] matlab用编译器的图像显示问题

[复制链接]
发表于 2007-6-11 21:28 | 显示全部楼层 |阅读模式

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

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

x
用matlab 6.5 的编译器想生成一个独立于matlab运行的程序
一般来说直接通过mcc指令可以实现
但是如果文件中有诸如 plot 等等的画图语句,编译时会提示

“References to "plot" require the C/C++ Graphics Library when executing in stand-alone mode. You must specify -B sgl or -B sglcpp in order to use the C/C++ Graphics Library. Also, if using the -W option, you must specify either the mainhg or libhg wrapper type. A run-time error will occur if the C/C++ Graphics Library is not present when "plot" is called.”

请问如何解决?:@)

[ 本帖最后由 eight 于 2007-6-11 21:48 编辑 ]
回复
分享到:

使用道具 举报

 楼主| 发表于 2007-6-11 21:38 | 显示全部楼层
用matlab生成一个独立于matlab的 可执行的windows窗口程序 可不可能实现呢?
比如生成一个软件的图形界面。我在matlab里面完成了这个带图形界面的软件,但是前提是运行的机器得装matlab...

如果不行的话,我就只能考虑完全用C++了
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

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

GMT+8, 2024-9-24 05:26 , Processed in 0.061742 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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