Error using ==> mcc
显示 更早的评论
I am new in MATLAB, could You help me ?
I would like to make a Add in to excel - i saw it on polish webminarium.
I am using windows 7 professional edition, when i would like to build a add-in to excel MATLAB R2008b shows this:
Compiler version: 4.9 (R2008b)
Warning: Duplicate directory name: C:\Users\Kamil\Documents\MATLAB.
mcc -W 'excel:Untitled5,Untitled5,1.0' -d 'C:\Users\Kamil\Documents\MATLAB\Untitled5\src' -T 'link:lib' -b -v 'class{Untitled5:G:\plotgantt.m}'
Warning: Name is nonexistent or not a directory: C:\Program
Files\MATLAB\R2008b\toolbox\compiler\patch.
Warning: Name is nonexistent or not a directory: C:\Program
Files\MATLAB\R2008b\toolbox\compiler\patch.
Processing C:\Program Files\MATLAB\R2008b\toolbox\matlab\mcc.enc
Processing include files...
2 item(s) added.
Processing directories installed with MCR...
The file C:\Users\Kamil\Documents\MATLAB\Untitled5\src\mccExcludedFiles.log contains a list of functions excluded from the CTF archive.
2 item(s) added.
Generating MATLAB path for the compiled application...
Created 39 path items.
Begin validation of MEX files: Sat Apr 23 19:17:31 2011
End validation of MEX files: Sat Apr 23 19:17:31 2011
Warning: Name is nonexistent or not a directory: C:\Program
Files\MATLAB\R2008b\toolbox\compiler\patch.
Deleting 0 temporary MEX authorization files.
Parsing file "G:\plotgantt.m"
(Referenced from: "Compiler Command Line").
Parsing file "C:\Program Files\MATLAB\R2008b\toolbox\compiler\deploy\deployprint.m"
(Referenced from: "Compiler Command Line").
Parsing file "C:\Program Files\MATLAB\R2008b\toolbox\compiler\deploy\printdlg.m"
(Referenced from: "Compiler Command Line").
Generating file "C:\Users\Kamil\Documents\MATLAB\Untitled5\src\Untitled5_idl.idl".
Generating file "C:\Users\Kamil\Documents\MATLAB\Untitled5\src\Untitled5_com.hpp".
Generating file "C:\Users\Kamil\Documents\MATLAB\Untitled5\src\Untitled5_com.cpp".
Generating file "C:\Users\Kamil\Documents\MATLAB\Untitled5\src\Untitled5_dll.cpp".
Generating file "C:\Users\Kamil\Documents\MATLAB\Untitled5\src\Untitled5.def".
Generating file "C:\Users\Kamil\Documents\MATLAB\Untitled5\src\Untitled5.rc".
Generating file "C:\Users\Kamil\Documents\MATLAB\Untitled5\src\Untitled5.bas".
Generating file "C:\Users\Kamil\Documents\MATLAB\Untitled5\src\readme.txt".
Generating file "C:\Users\Kamil\Documents\MATLAB\Untitled5\src\Untitled5_mcc_component_data.c".
Contents of temporary response file 'C:\Users\Kamil\AppData\Local\Temp\mathworks_tmp_3656_28770':
......................
' -O -v -output "Untitled5_1_0" -I"C:\Users\Kamil\Documents\MATLAB\Untitled5\src" "mwcomtypes.idl" "C:\Users\Kamil\Documents\MATLAB\Untitled5\src\Untitled5_idl.idl" "mclxlmain.lib" "C:\Users\Kamil\Documents\MATLAB\Untitled5\src\Untitled5_com.cpp" "C:\Users\Kamil\Documents\MATLAB\Untitled5\src\Untitled5_dll.cpp" "C:\Users\Kamil\Documents\MATLAB\Untitled5\src\Untitled5.def" "C:\Users\Kamil\Documents\MATLAB\Untitled5\src\Untitled5.rc" "C:\Users\Kamil\Documents\MATLAB\Untitled5\src\Untitled5_mcc_component_data.c" -link dll -outdir "C:\Users\Kamil\Documents\MATLAB\Untitled5\src" -regsvr'
......................
Executing command: mbuild "@C:\Users\Kamil\AppData\Local\Temp\mathworks_tmp_3656_28770"
This is mbuild Copyright 1984-2006 The MathWorks, Inc.
-> Default options filename found in C:\Users\Kamil\AppData\Roaming\MathWorks\MATLAB\R2008b
----------------------------------------------------------------
-> Options file = C:\Users\Kamil\AppData\Roaming\MathWorks\MATLAB\R2008b\compopts.bat
-> COMPILER = lcc
-> Compiler flags:
COMPFLAGS = -c -Zp8 -I"C:\PROGRA~1\MATLAB\R2008b\sys\lcc\include" -noregistrylookup
OPTIMFLAGS = -DNDEBUG
DEBUGFLAGS = -g4
arguments = -IC:\USERS\KAMIL\DOCUME~1\MATLAB\UN3F25~1\SRC
Name switch = -Fo
-> Pre-linking commands =
-> LINKER = lcclnk
-> Link directives:
LINKFLAGS = -dll "C:\USERS\KAMIL\APPDATA\LOCAL\TEMP\MBUILD~2\templib.def" -tmpdir "C:\USERS\KAMIL\DOCUME~1\MATLAB\UN3F25~1\SRC\." -L"C:\PROGRA~1\MATLAB\R2008b\sys\lcc\lib" -libpath "C:\PROGRA~1\MATLAB\R2008b\extern\lib\win32\lcc" C:\USERS\KAMIL\APPDATA\LOCAL\TEMP\MBUILD~2\templib_stub.obj
LINKFLAGSPOST = mclmcrrt.lib
Name directive = -o "C:\USERS\KAMIL\DOCUME~1\MATLAB\UN3F25~1\SRC\Untitled5_1_0.dll"
File link directive =
Lib. link directive =
Rsp file indicator = @
-> Resource Compiler =
-> Resource Linker =
----------------------------------------------------------------
C:\PROGRA~1\MATLAB\R2008B\BIN\MEX.PL: Error: The chosen compiler does not support building COM objects.
Please see the MATLAB Builder documentation for the latest list of supported compilers.
Error: An error occurred while shelling out to mbuild (error code = 255).
Unable to build executable.
??? Error using ==> mcc
Error executing mcc, return status = 1.
What i have to do ?
回答(2 个)
Kaustubha Govind
2011-4-25
2 个投票
It seems like you selected LCC as the compiler with "mbuild -setup". However, LCC cannot be used with MATLAB Builder EX. You need to install and select one of the supported compilers (see the ones that have the MATLAB Builder EX column selected): http://www.mathworks.com/support/compilers/release2008b/
Kamil
2011-4-25
0 个投票
5 个评论
Chirag Gupta
2011-4-25
Could you paste the error. If you have installed the Compiler correctly, then I suspect the error would be different, even though the last line would be the same:
Unable to build executable.
??? Error using ==> mcc
Error executing mcc, return status = 1.
Kamil
2011-4-25
Kamil
2011-4-25
Chirag Gupta
2011-4-25
This is a strange error pointing missing STL headers.
Try mbuild -setup
Let MATLAB show you the installed compilers and check whether Matlab shows VS 6.
Kamil
2011-4-26
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB Compiler 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!