>> mcc -vm plus_test.m
Compiler version: 4.7 (R2007b)
Processing D:\MATLAB\R2007b\toolbox\matlab\mcc.enc
Processing include files...
2 item(s) added.
Processing directories installed with MCR...
The file mccExcludedFiles.log contains a list of functions excluded from the CTF archive.
1 item(s) added.
Generating MATLAB path for the compiled application...
Created 35 path items.
Begin validation of MEX files: Tue Jul 06 17:45:26 2010
Validating 'D:\MATLAB\R2007b\toolbox\compiler\deploy\deploywhich.mexw32'.
No conflicting M-file found.
Validating 'D:\MATLAB\R2007b\toolbox\compiler\deploy\readline.mexw32'.
No conflicting M-file found.
End validation of MEX files: Tue Jul 06 17:45:26 2010
Deleting 2 temporary MEX authorization files.
Removing: 'C:\DOCUME~1\LENOVO~1\LOCALS~1\Temp\mathworks_tmp_6122_12236.auth'.
Removing: 'C:\DOCUME~1\LENOVO~1\LOCALS~1\Temp\mathworks_tmp_28968_12236.auth'.
Parsing file "C:\Documents and Settings\lenovo-13\My Documents\MATLAB\exe_test\plus_test.m"
(Referenced from: "Compiler Command Line").
Parsing file "D:\MATLAB\R2007b\toolbox\compiler\deploy\deployprint.m"
(Referenced from: "Compiler Command Line").
Parsing file "D:\MATLAB\R2007b\toolbox\compiler\deploy\printdlg.m"
(Referenced from: "Compiler Command Line").
Generating file "plus_test_main.c".
Generating file "C:\Documents and Settings\lenovo-13\My Documents\MATLAB\exe_test\readme.txt".
Generating file "plus_test_mcc_component_data.c".
Executing command: mbuild -O -v -output "plus_test" "plus_test_main.c" "plus_test_mcc_component_data.c" -link exe
This is mbuild Copyright 1984-2006 The MathWorks, Inc.
-> Default options filename found in C:\Documents and Settings\lenovo-13\Application Data\MathWorks\MATLAB\R2007b
----------------------------------------------------------------
-> Options file = C:\Documents and Settings\lenovo-13\Application Data\MathWorks\MATLAB\R2007b\compopts.bat
-> COMPILER = lcc
-> Compiler flags:
COMPFLAGS = -c -Zp8 -I"D:\MATLAB\R2007b\sys\lcc\include" -noregistrylookup
OPTIMFLAGS = -DNDEBUG
DEBUGFLAGS = -g4
arguments =
Name switch = -Fo
-> Pre-linking commands =
-> LINKER = lcclnk
-> Link directives:
LINKFLAGS = -tmpdir "." -L"D:\MATLAB\R2007b\sys\lcc\lib" -libpath "D:\MATLAB\R2007b\extern\lib\win32\lcc" -subsystem windows
LINKFLAGSPOST = mclmcrrt.lib
Name directive = -o "plus_test.exe"
File link directive =
Lib. link directive =
Rsp file indicator = @
-> Resource Compiler =
-> Resource Linker =
----------------------------------------------------------------
--> "lcc -c -Zp8 -I"D:\MATLAB\R2007b\sys\lcc\include" -noregistrylookup -FoC:\DOCUME~1\LENOVO~1\LOCALS~1\Temp\mbuild_1EF3788B-9F7F-4A4C-CA89-E7C7B5698A75\plus_test_main.obj -ID:\MATLAB\R2007b\extern\include -ID:\MATLAB\R2007b\simulink\include -DNDEBUG plus_test_main.c"
--> "lcc -c -Zp8 -I"D:\MATLAB\R2007b\sys\lcc\include" -noregistrylookup -FoC:\DOCUME~1\LENOVO~1\LOCALS~1\Temp\mbuild_1EF3788B-9F7F-4A4C-CA89-E7C7B5698A75\plus_test_mcc_component_data.obj -ID:\MATLAB\R2007b\extern\include -ID:\MATLAB\R2007b\simulink\include -DNDEBUG plus_test_mcc_component_data.c"
Contents of C:\DOCUME~1\LENOVO~1\LOCALS~1\Temp\mbuild_1EF3788B-9F7F-4A4C-CA89-E7C7B5698A75\mbuild_tmp.rsp:
C:\DOCUME~1\LENOVO~1\LOCALS~1\Temp\mbuild_1EF3788B-9F7F-4A4C-CA89-E7C7B5698A75\plus_test_main.obj C:\DOCUME~1\LENOVO~1\LOCALS~1\Temp\mbuild_1EF3788B-9F7F-4A4C-CA89-E7C7B5698A75\plus_test_mcc_component_data.obj
--> "lcclnk -o "plus_test.exe" -tmpdir "." -L"D:\MATLAB\R2007b\sys\lcc\lib" -libpath "D:\MATLAB\R2007b\extern\lib\win32\lcc" -subsystem windows @C:\DOCUME~1\LENOVO~1\LOCALS~1\Temp\mbuild_1EF3788B-9F7F-4A4C-CA89-E7C7B5698A75\mbuild_tmp.rsp mclmcrrt.lib"
--> "if exist C:\DOCUME~1\LENOVO~1\LOCALS~1\Temp\mbuild_1EF3788B-9F7F-4A4C-CA89-E7C7B5698A75\templib.def del C:\DOCUME~1\LENOVO~1\LOCALS~1\Temp\mbuild_1EF3788B-9F7F-4A4C-CA89-E7C7B5698A75\templib.def"
--> "if exist C:\DOCUME~1\LENOVO~1\LOCALS~1\Temp\mbuild_1EF3788B-9F7F-4A4C-CA89-E7C7B5698A75\templib_stub.obj del C:\DOCUME~1\LENOVO~1\LOCALS~1\Temp\mbuild_1EF3788B-9F7F-4A4C-CA89-E7C7B5698A75\templib_stub.obj"
Error: An error occurred while shelling out to mbuild (error code = 1).
Unable to build executable.
??? Error using ==> mcc
Error executing mcc, return status = 1.
这是什么原因啊 2007a 2009a都是如此