我要加入 登录
声振论坛 返回首页

yangzj的个人空间 http://home.vibunion.com/?18785 [收藏] [复制] [分享] [RSS]

日志

关于去掉matlab可执行程序dos窗口(控制台)

已有 1904 次阅读2007-11-12 16:11 |个人分类:matlab

用matlab生成的可执行文件会启动控制台界面来进行输入输出.可通过如下方法去掉这个dos窗口.(来源于Google讨论组 http://groups.google.com/group/comp.soft-sys.matlab/browse_thread/thread/0527d566c3b72873)

Add following line to your options file before you compile:

LCC:

set LINKFLAGS=%LINKFLAGS% -subsystem windows

Microsoft Visual C/C++:

set LINKFLAGS=%LINKFLAGS% /SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup

Borland:

set LINKFLAGS=%LINKFLAGS% -aa

If you do not have this line, the system defaults to building a console application.

You may edit your options file by typing the evaluating the following

sequence of MATLAB commands:

cd(prefdir)
edit compopts.bat

The above steps may cause undesirable or application-fatal behavior. if  your application generates any output that would otherwise be displayed in the console window.

评论 (0 个评论)

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 我要加入

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

GMT+8, 2024-11-24 15:28 , Processed in 0.045880 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部