필터 지우기
필터 지우기

Question about mcc -a plusab.m

조회 수: 2 (최근 30일)
amir
amir 2014년 5월 16일
편집: Image Analyst 2014년 8월 6일
At first I typed this
mbuild -setup
It gave this:
Welcome to mbuild -setup. This utility will help you set up
a default compiler. For a list of supported compilers, see
http://www.mathworks.com/support/compilers/R2013b/win64.html
Please choose your compiler for building shared libraries or COM components:
Would you like mbuild to locate installed compilers [y]/n? y
Select a compiler:
[1] Microsoft Visual C++ 2012 in H:\Program Files (x86)\Microsoft Visual Studio 11.0
[0] None
Compiler: 1
Please verify your choices:
Compiler: Microsoft Visual C++ 2012
Location: H:\Program Files (x86)\Microsoft Visual Studio 11.0
Are these correct [y]/n? y
****************************************************************************
Warning: Applications/components generated using Microsoft Visual C++
2012 require that the Microsoft Visual Studio 2012 run-time
libraries be available on the computer used for deployment.
To redistribute your applications/components, be sure that the
deployment machine has these run-time libraries.
****************************************************************************
Trying to update options file: H:\Users\amin\AppData\Roaming\MathWorks\MATLAB\R2013b\compopts.bat
From template: F:\PROGRA~2\MATLAB\R2013b\bin\win64\mbuildopts\msvc110compp.bat
Done . . . --------------------------- I built this function:
function plusab(a,b);
if ischar(a)
a=str2double(a);
end
if ischar(b)
b=str2double(b);
end
c=a+b;
and I saved it. But I can't make an exe file by
mcc -m plusab.m
Error using mcc
Test checkout of feature 'Compiler' failed.
How can I solve this problem?
If I use lcc-win32, will it be solved?
Thank you

답변 (1개)

Harsheel
Harsheel 2014년 5월 16일
It seems like you have MATLAB Compiler installed but do not have a license for it. To confirm, execute the following:
>> license('checkout','Compiler')
0 will indicate that you don't have a license. You'll have to talk with the Sales Rep to get a license.
  댓글 수: 1
mobin
mobin 2014년 8월 6일
hello, unfortunatly I have a problem with mcc command, too.
I have executed license('checkout','Compiler') and the answer was 1, so it meens that there is no problem with license of compiler.
I want to make a library compiler app. and then I want to call it from .net, I test what has suggested in matlab's help (Create a .NET Component From MATLAB Code) and what has suggested in websites and.. , but in all of them, ther is 1 error:
Test checkout of feature 'Compiler' failed. mcc failed.

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

카테고리

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