Aug 3, 2006 #1 TotalRecall Electrical Joined Jul 20, 2006 Messages 6 Location GB 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?
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?
Aug 22, 2006 1 #2 JockeK Electrical Joined May 26, 2003 Messages 62 Location SE 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 Upvote 0 Downvote
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
Aug 22, 2006 Thread starter #3 TotalRecall Electrical Joined Jul 20, 2006 Messages 6 Location GB 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 Upvote 0 Downvote
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
Aug 22, 2006 #4 JockeK Electrical Joined May 26, 2003 Messages 62 Location SE 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. Upvote 0 Downvote
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.