Why do I receive the error "This program cannot be run in DOS mode." when I try to run my compiled MATLAB application?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 27 Jun. 2009
Kommentiert: guygyuggfff
am 17 Jun. 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.
Akzeptierte Antwort
MathWorks Support Team
am 4 Okt. 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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!