Why does the MCC –e switch not suppress the MS-DOS window in MATLAB Compiler 4.7 (R2007b)?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MathWorks Support Team
le 27 Juin 2009
Modifié(e) : MathWorks Support Team
le 19 Avr 2023
I have used the –e switch with the MCC command to suppress the appearance of the MS-DOS command window when generating a standalone application. But when starting the standalone application the MS-DOS window isn’t suppressed. I have used the LCC compiler.
Réponse acceptée
MathWorks Support Team
le 18 Avr 2023
Modifié(e) : MathWorks Support Team
le 19 Avr 2023
The reason the MCC –e switch is not suppressing the DOS window is because of the LCC compiler being used for the compilation process.
MCC tries to create a "WinMain" entry point in the main file when you specify the -e option. However, the WinMain entry point requires the Microsoft compiler to successfully compile. Therefore, if the compiler being used is a non-Microsoft compiler, we actually create a "main" entry point. This results in the DOS window being generated.
To work around this issue, use a Microsoft compiler. The supported compilers are listed on this page:
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Standalone Applications dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!