Why do I receive the error "This program cannot be run in DOS mode." when I try to run my compiled MATLAB application?
조회 수: 2 (최근 30일)
이전 댓글 표시
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.
채택된 답변
MathWorks Support Team
2017년 10월 4일
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!