Problems with Matlab Compiler

조회 수: 4 (최근 30일)
Roger Wohlwend
Roger Wohlwend 2014년 5월 20일
답변: Matt J 2014년 5월 21일
I have two problems with the compiler: (1) whenever I compile a m-file using the mcc command I get a warning: "Function display has the same name as a MATLAB bultin. We suggest you rename the function to avoid a potential name conflict". However, changing the name of the file and the function it contains does not make the warning disappear. What is the problem?
(2) I have a file that uses the command database from the database toolbox. Compiling the file is possible, but when I want to execute the standalone application, an error message occurs: "Undefined function 'database' for input arguments of type 'char'.". The database toolbox is on the search path and according to the Matlab documentation the database command should not cause any trouble when using the compiler. When I run the m-file in Matlab no problem occurs. Again: what is the problem?
  댓글 수: 2
Matt J
Matt J 2014년 5월 20일
(1) Does the same thing happen when you use deploytool? (Why are you using mcc anyway?)
(2) The MATLAB installation where you use the database toolbox and the MATLAB installation where you do your compiling are definitely the same?
Roger Wohlwend
Roger Wohlwend 2014년 5월 21일
@Matt J
(1) No, the problem does not occur when using deploytool.
(2) Yes, the MATLAB installations are definitely the same!

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

채택된 답변

Image Analyst
Image Analyst 2014년 5월 21일
I ran into this same thing yesterday and tech support says it's a known bug. You need to replace a certain file. See bug report http://www.mathworks.com/support/bugreports/search_results?utf8=%E2%9C%93&search_executed=1&keyword=1059029&release_filter=Exists+in&release=240&selected_products=&commit=Search

추가 답변 (1개)

Matt J
Matt J 2014년 5월 21일
(1) No, the problem does not occur when using deploytool.
If the problem doesn't occur with deploytool, I guess another solution is just to use that!

카테고리

Help CenterFile 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!

Translated by