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)
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
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.

Weitere Antworten (0)

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Produkte


Version

R13SP1

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by