Why do I receive the error "This program cannot be run in DOS mode." when I try to run my compiled MATLAB application?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
MathWorks Support Team
il 27 Giu 2009
Commentato: guygyuggfff
il 17 Giu 2021
I have MATLAB Version 6.5.1 (R13sp1) and I compiled my application with:
mcc -mgl -B sgl Wamute
When I try to run it, it gives the following error:
ERROR: This program cannot be run in DOS mode.
Risposta accettata
MathWorks Support Team
il 4 Ott 2017
This is a bug in MATLAB 6.5.1 (R13sp1) in the way that the MATLAB Compiler or the libmatlb.dll file handles some compiled applications. Our development staff is investigating this issue.
Currently, to work around this issue, try the following:
1. Quit MATLAB
2. Rename the following file:
$MATLAB/bin/win32/libmatlb.dll
(where $MATLAB represents the actual MATLAB installation directory )
You may call it libmatlb.dll.old, for example.
3. Download a new version of this file attached and place it in the folder mentioned in step 2.
4. Restart MATLAB
5. After restarting MATLAB, issue the following command at the MATLAB prompt:
rehash toolboxcache
Keep in mind that this may break other bug fixes that were made between the file that is on our FTP server and the one that you currently have. It is advisable to save a backup copy of your original libmatlb.dll. Also, if you contact our technical support group for another compiler related issue, it is important that you mention that you have updated this file in case the new problem you are experiencing has been fixed by your original libmatlb.dll file.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!