필터 지우기
필터 지우기

Error using MATLAB Compiler: "This file cannot be added to the CTF archive because it will cause an error when the application or library is run"

조회 수: 11 (최근 30일)
Hello all i want to convert m-file to a stand alone application. I entered the following in command window. mbuild -setup and i have selected the compiler Lcc. but when i entered the command
mcc -m myfilename.m
I got the following errors. The file 'C:\Documents and Settings\ototemp-u\My Documents\MATLAB\NUM.m' is empty (zero bytes long).
This file cannot be added to the CTF archive because it will cause an error
when the application or library is run. Add valid content to this file if
your application or library requires this file.
Failed to build CTF file: 'trial6.ctf'.
??? Error using ==> mcc
Error executing mcc, return status = 1 (0x1)

채택된 답변

Walter Roberson
Walter Roberson 2011년 3월 12일
Examine NUM.m . Is it empty, or does it consist entirely of comments?
  댓글 수: 3
Walter Roberson
Walter Roberson 2011년 3월 14일
I suggest running dependency walker http://www.dependencywalker.com/
Also, running it in the windows shell might give time for messages to show.
sandeep
sandeep 2011년 3월 14일
Thank you for the answer. the above application is of GREAT HELP.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by