×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Windows Apps using Matlab Compiler

Windows Apps using Matlab Compiler

Windows Apps using Matlab Compiler

(OP)
I have already compiled m files to console applications using the Matlab compiler, but I'm wondering is there a way to compile m files to windows applications to get rid of the console screen?

RE: Windows Apps using Matlab Compiler

Edit the compiler options file before you compile

CODE

cd(prefdir)
edit compopts.bat
Add the following line for your compiler

LCC:

CODE

set LINKFLAGS=%LINKFLAGS% -subsystem windows
Microsoft Visual C/C++:

CODE

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

CODE

set LINKFLAGS=%LINKFLAGS% -aa

RE: Windows Apps using Matlab Compiler

(OP)
It's unbelievable, after a long time & no replies, I get a spot-on answer. Thanks a lot JockeK :)

One question though: How about if I what to use Dev C++ as the C ++ compiler. What is the command to the compiler for that?

Regards

RE: Windows Apps using Matlab Compiler

Sorry, can't help you with that. I'm not an expert I just grabbed this from the Mathworks Support about 2 years ago and I can't find it there now.

"Subsystem" seems to be the keyword to search for in your compilers manual.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources