matlab调用com组件出现错误求解决,matlab在生成COM组件编译时出现错误
怎么回事啊
Build output( 2013-11-18 21:44:23).
mcc -W 'com:Untitled5,Untitled5,1.0' -d 'D:\matlab\aaaaaaaaaaaaa\Untitled5\src' -T 'link:lib' -v -M -ID:\c++\VC98\Include -M -LD:\c++\VC98\Lib 'class{Untitled5:C:\Documents and Settings\Administrator\My Documents\MATLAB\huatu.m}'??Compiler version: 4.10 (R2009a)??Processing include files... 2 item(s) added. Processing directories installed with MCR... The file D:\matlab\aaaaaaaaaaaaa\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 41 path items. Begin validation of MEX files: Mon Nov 18 21:44:53 2013??End validation of MEX files: Mon Nov 18 21:44:53 2013??Parsing file "D:\matlab\aaaaaaaaaaaaa\huatu.m" ? ? ? ? (Referenced from: "Compiler Command Line").??Warning: M-file "huatu.m" was specified on the command line with full path of "C:\Documents and Settings\Administrator\My Documents\MATLAB",??but was found on the search path in directory "D:\matlab\aaaaaaaaaaaaa" first.??Parsing file "D:\toolbox\compiler\deploy\deployprint.m" ? ? ? ? (Referenced from: "Compiler Command Line").??Warning: Could not read file permissions from input file:? ?'D:' System error text: 'No such file or directory' Parsing file "D:\toolbox\compiler\deploy\printdlg.m" ? ? ? ? (Referenced from: "Compiler Command Line").??Deleting 0 temporary MEX authorization files.??Generating file "D:\matlab\aaaaaaaaaaaaa\Untitled5\src\Untitled5_idl.idl".??Generating file "D:\matlab\aaaaaaaaaaaaa\Untitled5\src\Untitled5_com.hpp".??Generating file "D:\matlab\aaaaaaaaaaaaa\Untitled5\src\Untitled5_com.cpp".??Generating file "D:\matlab\aaaaaaaaaaaaa\Untitled5\src\Untitled5_dll.cpp".??Generating file "D:\matlab\aaaaaaaaaaaaa\Untitled5\src\Untitled5.def".??Generating file "D:\matlab\aaaaaaaaaaaaa\Untitled5\src\Untitled5.rc".??Generating file "D:\matlab\aaaaaaaaaaaaa\Untitled5\src\readme.txt".??Generating file "D:\matlab\aaaaaaaaaaaaa\Untitled5\src\Untitled5_mcc_component_data.c".??Contents of temporary response file 'C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\mathworks_tmp_24148_21552':? ?......................??' -O -v -output "Untitled5_1_0" -I"D:\matlab\aaaaaaaaaaaaa\Untitled5\src" "mwcomtypes.idl" "D:\matlab\aaaaaaaaaaaaa\Untitled5\src\Untitled5_idl.idl" "mwcomtypes.idl" "mwcomtypes.idl" "mclcommain.lib" "D:\matlab\aaaaaaaaaaaaa\Untitled5\src\Untitled5_com.cpp" "mwcomtypes.idl" "D:\matlab\aaaaaaaaaaaaa\Untitled5\src\Untitled5_dll.cpp" "mwcomtypes.idl" "D:\matlab\aaaaaaaaaaaaa\Untitled5\src\Untitled5.def" "mwcomtypes.idl" "D:\matlab\aaaaaaaaaaaaa\Untitled5\src\Untitled5.rc" "D:\matlab\aaaaaaaaaaaaa\Untitled5\src\Untitled5_mcc_component_data.c" -link dll -outdir "D:\matlab\aaaaaaaaaaaaa\Untitled5\src" -regsvr "-ID:\c++\VC98\Include" "-LD:\c++\VC98\Lib"'??......................??Executing command: mbuild??"@C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\mathworks_tmp_24148_21552"? ?This is mbuild Copyright 1984-2006 The MathWorks, Inc.??-> Default options filename found in C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R2009a ---------------------------------------------------------------- ->? ? Options file? ?? ?? ???= C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R2009a\compopts.bat ->? ? COMPILER? ?? ?? ?? ?? ?= cl ->? ? Compiler flags:? ?? ?? ? COMPFLAGS? ?? ?? ???= -c -Zp8 -G5 -GX -W3 -nologo -I"D:\extern\include\win32" -DMSVC -DIBMPC? ?? ?? ? OPTIMFLAGS? ?? ?? ? = -O2 -DNDEBUG? ?? ?? ? DEBUGFLAGS? ?? ?? ? = -Z7? ?? ?? ? arguments? ?? ?? ???=??-ID:\MATLAB\AAAAAA~1\UNTITL~2\SRC -ID:\C__~1\VC98\INCLUDE? ?? ?? ? Name switch? ?? ?? ?= /Fo ->? ? Pre-linking commands? ?=??->? ? LINKER? ?? ?? ?? ?? ???= link ->? ? Link directives:? ?? ?? ? LINKFLAGS? ?? ?? ???=??kernel32.lib user32.lib gdi32.lib advapi32.lib oleaut32.lib ole32.lib /LIBPATH:"D:\extern\lib\win32\microsoft" /nologo mclmcrrt.lib? ?/dll /implib:"D:\MATLAB\AAAAAA~1\UNTITL~2\SRC\Untitled5_1_0.lib" /def:D:\matlab\aaaaaaaaaaaaa\Untitled5\src\Untitled5.def? ?? ?? ? LINKFLAGSPOST? ?? ? =? ?? ?? ???Name directive? ?? ?= "/out:D:\MATLAB\AAAAAA~1\UNTITL~2\SRC\Untitled5_1_0.dll"? ?? ?? ? File link directive =? ?? ?? ???Lib. link directive =? ?? ?? ???Rsp file indicator??= @ ->? ? Resource Compiler? ?? ?= rc /fo "D:\MATLAB\AAAAAA~1\UNTITL~2\SRC\Untitled5.res" ->? ? Resource Linker? ?? ???=??----------------------------------------------------------------? ? Could not find the compiler "cl" on the DOS path.? ?Use mbuild -setup to configure your environment properly.? ???D:\BIN\MEX.PL: Error: Unable to locate compiler.??Error: An error occurred while shelling out to mbuild (error code = 2). Unable to build executable. ??? Error using ==> mccError executing mcc, return status = 1 (0x1).
There were errors during compilation process.
總結(jié)
以上是生活随笔為你收集整理的matlab调用com组件出现错误求解决,matlab在生成COM组件编译时出现错误的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: [react] 请描述下事件在react
- 下一篇: matlab复杂网络上的博弈演化,科学网