Why do I receive the error "This program cannot be run in DOS mode." when I try to run my compiled MATLAB application?

2 vues (au cours des 30 derniers jours)
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.

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 4 Oct 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.

Plus de réponses (0)

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Produits


Version

R13SP1

Community Treasure Hunt

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

Start Hunting!

Translated by