Question about mcc -a plusab.m
    7 次查看(过去 30 天)
  
       显示 更早的评论
    
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
0 个评论
回答(1 个)
  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
 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 Center 和 File Exchange 中查找有关 Get Started with MATLAB Compiler 的更多信息
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


