Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows Apps using Matlab Compiler 1

Status
Not open for further replies.

TotalRecall

Electrical
Jul 20, 2006
6
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?
 
Replies continue below

Recommended for you

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

 
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
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor