MATLAB Answers

0

DEPLOYMENT ERROR

Asked by Branko Knezevic on 23 May 2011

Hi.

I am trying to create excel dll using Matlab Builder EX. I get an error "Error: An error occurred while shelling out to mbuild (error code = 255). Unable to build executable". Creating .exe file is no problem. I would appriceate any help. I have to finish this asap.

  0 Comments

Sign in to comment.

4 Answers

Answer by Friedrich
on 24 May 2011
 Accepted Answer

Hi,

Walter is right. You need admin privilges in order to be able to register this COM DLL. This is needed in order to be able to call this DLL from Excel.

What did you change to get error code = 2 instead of error code = 255?

  0 Comments

Sign in to comment.


Answer by Friedrich
on 24 May 2011

I think when you take a look at the log file you will find the entry:

$MATLABROOT\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.

So I think you choose the LCC as compiler, who is not able to compile COM object. Please use a different supported compiler. Which one is supported and able to compile COM object can be obtained on the MathWorks homepage under

http://www.mathworks.com/support/compilers/previous_releases.html

I hope I could help,

Friedrich

  0 Comments

Sign in to comment.


Answer by Branko Knezevic on 24 May 2011

[EDIT: 20110524 02:21 CDT - reformat, clarify - WDR]

It looks like I am using the right compiler with my version of MATLAB (R2010a) for building excel dll. I also checked this on website. Bellow is the answer I get. Do you have any other suggestions?

ant:
<ant>
  <mkdir dir="G:\POSITION_TOOL\POSITION_TOOL_V2.0\xlFLOW\distrib" />
  <mkdir dir="G:\POSITION_TOOL\POSITION_TOOL_V2.0\xlFLOW\src" />
</ant>
mcc -W excel:xlFLOW,Class1,1.0 -T link:lib -b -d G:\POSITION_TOOL\POSITION_TOOL_V2.0\xlFLOW\src -w enable:specified_file_mismatch -w enable:repeated_file -w enable:switch_ignored -w enable:missing_lib_sentinel -w enable:demo_license -v class{Class1:G:\POSITION_TOOL\POSITION_TOOL_V2.0\EXECUTABLES\FLOWs\optimize_CBTC.m} 
Compiler version: 4.13 (R2010a) 
Processing C:\Program Files (x86)\MATLAB\R2010a\toolbox\optim\mcc.enc
Processing C:\Program Files (x86)\MATLAB\R2010a\toolbox\shared\optimlib\mcc.enc
Processing include files...
2 item(s) added.
Processing directories installed with MCR...
The file G:\POSITION_TOOL\POSITION_TOOL_V2.0\xlFLOW\src\mccExcludedFiles.log contains a list of functions excluded from the CTF archive.
5 item(s) added.
Generating MATLAB path for the compiled application...
Created 41 path items.
Begin validation of MEX files: Tue May 24 08:47:37 2011 
End validation of MEX files: Tue May 24 08:47:37 2011 
Parsing file "G:\POSITION_TOOL\POSITION_TOOL_V2.0\EXECUTABLES\FLOWs\optimize_CBTC.m"
	(Referenced from: "Compiler Command Line"). 
Parsing file "C:\Program Files (x86)\MATLAB\R2010a\toolbox\compiler\deploy\deployprint.m"
	(Referenced from: "Compiler Command Line"). 
Parsing file "C:\Program Files (x86)\MATLAB\R2010a\toolbox\compiler\deploy\printdlg.m"
	(Referenced from: "Compiler Command Line"). 
Deleting 0 temporary MEX authorization files. 
Generating file "G:\POSITION_TOOL\POSITION_TOOL_V2.0\xlFLOW\src\xlFLOW_idl.idl". 
Generating file "G:\POSITION_TOOL\POSITION_TOOL_V2.0\xlFLOW\src\Class1_com.hpp". 
Generating file "G:\POSITION_TOOL\POSITION_TOOL_V2.0\xlFLOW\src\Class1_com.cpp". 
Generating file "G:\POSITION_TOOL\POSITION_TOOL_V2.0\xlFLOW\src\xlFLOW_dll.cpp". 
Generating file "G:\POSITION_TOOL\POSITION_TOOL_V2.0\xlFLOW\src\xlFLOW.def". 
Generating file "G:\POSITION_TOOL\POSITION_TOOL_V2.0\xlFLOW\src\xlFLOW.rc". 
Generating file "G:\POSITION_TOOL\POSITION_TOOL_V2.0\xlFLOW\src\xlFLOW.bas". 
Generating file "G:\POSITION_TOOL\POSITION_TOOL_V2.0\xlFLOW\src\readme.txt". 
Generating file "G:\POSITION_TOOL\POSITION_TOOL_V2.0\xlFLOW\src\xlFLOW_mcc_component_data.c". 
Contents of temporary response file 'C:\Users\brankok\AppData\Local\Temp\mathworks_tmp_4972_4932': 
 ...................... 
' -O -v -output "xlFLOW_1_0" -I"G:\POSITION_TOOL\POSITION_TOOL_V2.0\xlFLOW\src" "mwcomtypes.idl" "G:\POSITION_TOOL\POSITION_TOOL_V2.0\xlFLOW\src\xlFLOW_idl.idl" "mwcomtypes.idl" "mwcomtypes.idl" "mwcomtypes.idl" "mclxlmain.lib" "G:\POSITION_TOOL\POSITION_TOOL_V2.0\xlFLOW\src\Class1_com.cpp" "mwcomtypes.idl" "G:\POSITION_TOOL\POSITION_TOOL_V2.0\xlFLOW\src\xlFLOW_dll.cpp" "mwcomtypes.idl" "G:\POSITION_TOOL\POSITION_TOOL_V2.0\xlFLOW\src\xlFLOW.def" "mwcomtypes.idl" "G:\POSITION_TOOL\POSITION_TOOL_V2.0\xlFLOW\src\xlFLOW.rc" "G:\POSITION_TOOL\POSITION_TOOL_V2.0\xlFLOW\src\xlFLOW_mcc_component_data.c" -link dll -outdir "G:\POSITION_TOOL\POSITION_TOOL_V2.0\xlFLOW\src" -regsvr' 
...................... 
Executing command: ""C:\Program Files (x86)\MATLAB\R2010a\bin\mbuild"  "@C:\Users\brankok\AppData\Local\Temp\mathworks_tmp_4972_4932"" 
 This is mbuild Copyright 1984-2006 The MathWorks, Inc.
-> Default options filename found in C:\Users\brankok\AppData\Roaming\MathWorks\MATLAB\R2010a
----------------------------------------------------------------
->    Options file           = C:\Users\brankok\AppData\Roaming\MathWorks\MATLAB\R2010a\compopts.bat
->    COMPILER               = cl
->    Compiler flags:
         COMPFLAGS           = -MD -c -Zp8 -GR -EHsc- -Zc:wchar_t- -W3 -nologo -I"C:\PROGRA~2\MATLAB\R2010a\extern\include\win32" -DMSVC -DIBMPC /D_CRT_SECURE_NO_DEPRECATE
         OPTIMFLAGS          = -O2 -DNDEBUG
         DEBUGFLAGS          = -Z7
         arguments           =  -IG:\POSITI~1\POSITI~1.0\XLFLOW\SRC
         Name switch         = /Fo
->    Pre-linking commands   = 
->    LINKER                 = link
->    Link directives:
         LINKFLAGS           =  kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib oleaut32.lib ole32.lib uuid.lib odbc32.lib odbccp32.lib /LIBPATH:"C:\PROGRA~2\MATLAB\R2010a\extern\lib\win32\microsoft" /nologo /manifest /manifestfile:"G:\POSITI~1\POSITI~1.0\XLFLOW\SRC\xlFLOW_1_0.msvc.manifest" mclmcrrt.lib   /dll /implib:"G:\POSITI~1\POSITI~1.0\XLFLOW\SRC\xlFLOW_1_0.lib" /def:G:\POSITION_TOOL\POSITION_TOOL_V2.0\xlFLOW\src\xlFLOW.def
         LINKFLAGSPOST       = 
         Name directive      = "/out:G:\POSITI~1\POSITI~1.0\XLFLOW\SRC\xlFLOW_1_0.dll"
         File link directive = 
         Lib. link directive = 
         Rsp file indicator  = @
->    Resource Compiler      = rc /fo "G:\POSITI~1\POSITI~1.0\XLFLOW\SRC\xlFLOW.res"
->    Resource Linker        = 
----------------------------------------------------------------
--> copy C:\PROGRA~2\MATLAB\R2010a\extern\include\win32\mwcomutil.tlb .
        1 file(s) copied.
--> midl /nologo /win32 /I "C:\PROGRA~2\MATLAB\R2010a\extern\include"  /D "NDEBUG"  /out "G:\POSITI~1\POSITI~1.0\XLFLOW\SRC" "mwcomtypes.idl"
mwcomtypes.idl
oaidl.idl
objidl.idl
unknwn.idl
wtypes.idl
basetsd.h
guiddef.h
ocidl.idl
oleidl.idl
servprov.idl
urlmon.idl
msxml.idl
oaidl.acf
ocidl.acf
Processing C:\PROGRA~2\MATLAB\R2010a\extern\include\mwcomtypes.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\oaidl.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\objidl.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\unknwn.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\wtypes.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\basetsd.h
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\guiddef.h
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\ocidl.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\oleidl.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\servprov.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\urlmon.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\msxml.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\oaidl.acf
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\ocidl.acf
--> midl /nologo /win32 /I "C:\PROGRA~2\MATLAB\R2010a\extern\include"  /D "NDEBUG"  /out "G:\POSITI~1\POSITI~1.0\XLFLOW\SRC" "G:\POSITION_TOOL\POSITION_TOOL_V2.0\xlFLOW\src\xlFLOW_idl.idl"
xlFLOW_idl.idl
oaidl.idl
objidl.idl
unknwn.idl
wtypes.idl
basetsd.h
guiddef.h
ocidl.idl
oleidl.idl
servprov.idl
urlmon.idl
msxml.idl
mwcomtypes.idl
oaidl.acf
ocidl.acf
Processing G:\POSITION_TOOL\POSITION_TOOL_V2.0\xlFLOW\src\xlFLOW_idl.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\oaidl.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\objidl.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\unknwn.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\wtypes.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\basetsd.h
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\guiddef.h
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\ocidl.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\oleidl.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\servprov.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\urlmon.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\msxml.idl
Processing C:\PROGRA~2\MATLAB\R2010a\extern\include\mwcomtypes.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\oaidl.acf
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\ocidl.acf
--> midl /nologo /win32 /I "C:\PROGRA~2\MATLAB\R2010a\extern\include"  /D "NDEBUG"  /out "G:\POSITI~1\POSITI~1.0\XLFLOW\SRC" "mwcomtypes.idl"
mwcomtypes.idl
oaidl.idl
objidl.idl
unknwn.idl
wtypes.idl
basetsd.h
guiddef.h
ocidl.idl
oleidl.idl
servprov.idl
urlmon.idl
msxml.idl
oaidl.acf
ocidl.acf
Processing C:\PROGRA~2\MATLAB\R2010a\extern\include\mwcomtypes.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\oaidl.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\objidl.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\unknwn.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\wtypes.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\basetsd.h
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\guiddef.h
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\ocidl.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\oleidl.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\servprov.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\urlmon.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\msxml.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\oaidl.acf
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\ocidl.acf
--> midl /nologo /win32 /I "C:\PROGRA~2\MATLAB\R2010a\extern\include"  /D "NDEBUG"  /out "G:\POSITI~1\POSITI~1.0\XLFLOW\SRC" "mwcomtypes.idl"
mwcomtypes.idl
oaidl.idl
objidl.idl
unknwn.idl
wtypes.idl
basetsd.h
guiddef.h
ocidl.idl
oleidl.idl
servprov.idl
urlmon.idl
msxml.idl
oaidl.acf
ocidl.acf
Processing C:\PROGRA~2\MATLAB\R2010a\extern\include\mwcomtypes.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\oaidl.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\objidl.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\unknwn.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\wtypes.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\basetsd.h
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\guiddef.h
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\ocidl.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\oleidl.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\servprov.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\urlmon.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\msxml.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\oaidl.acf
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\ocidl.acf
--> midl /nologo /win32 /I "C:\PROGRA~2\MATLAB\R2010a\extern\include"  /D "NDEBUG"  /out "G:\POSITI~1\POSITI~1.0\XLFLOW\SRC" "mwcomtypes.idl"
mwcomtypes.idl
oaidl.idl
objidl.idl
unknwn.idl
wtypes.idl
basetsd.h
guiddef.h
ocidl.idl
oleidl.idl
servprov.idl
urlmon.idl
msxml.idl
oaidl.acf
ocidl.acf
Processing C:\PROGRA~2\MATLAB\R2010a\extern\include\mwcomtypes.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\oaidl.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\objidl.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\unknwn.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\wtypes.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\basetsd.h
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\guiddef.h
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\ocidl.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\oleidl.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\servprov.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\urlmon.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\msxml.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\oaidl.acf
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\ocidl.acf
--> midl /nologo /win32 /I "C:\PROGRA~2\MATLAB\R2010a\extern\include"  /D "NDEBUG"  /out "G:\POSITI~1\POSITI~1.0\XLFLOW\SRC" "mwcomtypes.idl"
mwcomtypes.idl
oaidl.idl
objidl.idl
unknwn.idl
wtypes.idl
basetsd.h
guiddef.h
ocidl.idl
oleidl.idl
servprov.idl
urlmon.idl
msxml.idl
oaidl.acf
ocidl.acf
Processing C:\PROGRA~2\MATLAB\R2010a\extern\include\mwcomtypes.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\oaidl.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\objidl.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\unknwn.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\wtypes.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\basetsd.h
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\guiddef.h
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\ocidl.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\oleidl.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\servprov.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\urlmon.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\msxml.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\oaidl.acf
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\ocidl.acf
--> midl /nologo /win32 /I "C:\PROGRA~2\MATLAB\R2010a\extern\include"  /D "NDEBUG"  /out "G:\POSITI~1\POSITI~1.0\XLFLOW\SRC" "mwcomtypes.idl"
mwcomtypes.idl
oaidl.idl
objidl.idl
unknwn.idl
wtypes.idl
basetsd.h
guiddef.h
ocidl.idl
oleidl.idl
servprov.idl
urlmon.idl
msxml.idl
oaidl.acf
ocidl.acf
Processing C:\PROGRA~2\MATLAB\R2010a\extern\include\mwcomtypes.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\oaidl.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\objidl.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\unknwn.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\wtypes.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\basetsd.h
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\guiddef.h
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\ocidl.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\oleidl.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\servprov.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\urlmon.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\msxml.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\oaidl.acf
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\ocidl.acf
--> midl /nologo /win32 /I "C:\PROGRA~2\MATLAB\R2010a\extern\include"  /D "NDEBUG"  /out "G:\POSITI~1\POSITI~1.0\XLFLOW\SRC" "mwcomtypes.idl"
mwcomtypes.idl
oaidl.idl
objidl.idl
unknwn.idl
wtypes.idl
basetsd.h
guiddef.h
ocidl.idl
oleidl.idl
servprov.idl
urlmon.idl
msxml.idl
oaidl.acf
ocidl.acf
Processing C:\PROGRA~2\MATLAB\R2010a\extern\include\mwcomtypes.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\oaidl.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\objidl.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\unknwn.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\wtypes.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\basetsd.h
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\guiddef.h
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\ocidl.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\oleidl.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\servprov.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\urlmon.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\msxml.idl
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\oaidl.acf
Processing C:\Program Files\Microsoft SDKs\Windows\v7.0\include\ocidl.acf
--> del mwcomutil.tlb
--> cl  -IG:\POSITI~1\POSITI~1.0\XLFLOW\SRC -MD -c -Zp8 -GR -EHsc- -Zc:wchar_t- -W3 -nologo -I"C:\PROGRA~2\MATLAB\R2010a\extern\include\win32" -DMSVC -DIBMPC /D_CRT_SECURE_NO_DEPRECATE /FoC:\USERS\BRANKOK\APPDATA\LOCAL\TEMP\MBUILD~1\Class1_com.obj -IC:\PROGRA~2\MATLAB\R2010a\extern\include -IC:\PROGRA~2\MATLAB\R2010a\simulink\include -O2 -DNDEBUG G:\POSITION_TOOL\POSITION_TOOL_V2.0\xlFLOW\src\Class1_com.cpp
Class1_com.cpp
--> cl  -IG:\POSITI~1\POSITI~1.0\XLFLOW\SRC -MD -c -Zp8 -GR -EHsc- -Zc:wchar_t- -W3 -nologo -I"C:\PROGRA~2\MATLAB\R2010a\extern\include\win32" -DMSVC -DIBMPC /D_CRT_SECURE_NO_DEPRECATE /FoC:\USERS\BRANKOK\APPDATA\LOCAL\TEMP\MBUILD~1\xlFLOW_dll.obj -IC:\PROGRA~2\MATLAB\R2010a\extern\include -IC:\PROGRA~2\MATLAB\R2010a\simulink\include -O2 -DNDEBUG G:\POSITION_TOOL\POSITION_TOOL_V2.0\xlFLOW\src\xlFLOW_dll.cpp
xlFLOW_dll.cpp
--> cl  -IG:\POSITI~1\POSITI~1.0\XLFLOW\SRC -MD -c -Zp8 -GR -EHsc- -Zc:wchar_t- -W3 -nologo -I"C:\PROGRA~2\MATLAB\R2010a\extern\include\win32" -DMSVC -DIBMPC /D_CRT_SECURE_NO_DEPRECATE /FoC:\USERS\BRANKOK\APPDATA\LOCAL\TEMP\MBUILD~1\xlFLOW_mcc_component_data.obj -IC:\PROGRA~2\MATLAB\R2010a\extern\include -IC:\PROGRA~2\MATLAB\R2010a\simulink\include -O2 -DNDEBUG G:\POSITION_TOOL\POSITION_TOOL_V2.0\xlFLOW\src\xlFLOW_mcc_component_data.c
xlFLOW_mcc_component_data.c
--> rc /fo "G:\POSITI~1\POSITI~1.0\XLFLOW\SRC\xlFLOW.res"  G:\POSITION_TOOL\POSITION_TOOL_V2.0\xlFLOW\src\xlFLOW.rc
Microsoft (R) Windows (R) Resource Compiler Version 6.1.7600.16385
Copyright (C) Microsoft Corporation.  All rights reserved.
    Contents of C:\USERS\BRANKOK\APPDATA\LOCAL\TEMP\MBUILD~1\mbuild_tmp.rsp:
  mclxlmain.lib  C:\USERS\BRANKOK\APPDATA\LOCAL\TEMP\MBUILD~1\Class1_com.obj  C:\USERS\BRANKOK\APPDATA\LOCAL\TEMP\MBUILD~1\xlFLOW_dll.obj  C:\USERS\BRANKOK\APPDATA\LOCAL\TEMP\MBUILD~1\xlFLOW_mcc_component_data.obj G:\POSITION_TOOL\POSITION_TOOL_V2.0\xlFLOW\src\xlFLOW.res
--> link "/out:G:\POSITI~1\POSITI~1.0\XLFLOW\SRC\xlFLOW_1_0.dll"  kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib oleaut32.lib ole32.lib uuid.lib odbc32.lib odbccp32.lib /LIBPATH:"C:\PROGRA~2\MATLAB\R2010a\extern\lib\win32\microsoft" /nologo /manifest /manifestfile:"G:\POSITI~1\POSITI~1.0\XLFLOW\SRC\xlFLOW_1_0.msvc.manifest" mclmcrrt.lib   /dll /implib:"G:\POSITI~1\POSITI~1.0\XLFLOW\SRC\xlFLOW_1_0.lib" /def:G:\POSITION_TOOL\POSITION_TOOL_V2.0\xlFLOW\src\xlFLOW.def  @C:\USERS\BRANKOK\APPDATA\LOCAL\TEMP\MBUILD~1\MBUILD~1.RSP  
   Creating library G:\POSITI~1\POSITI~1.0\XLFLOW\SRC\xlFLOW_1_0.lib and object G:\POSITI~1\POSITI~1.0\XLFLOW\SRC\xlFLOW_1_0.exp
--> mt.exe -outputresource:"G:\POSITI~1\POSITI~1.0\XLFLOW\SRC\xlFLOW_1_0.dll";2 -manifest "G:\POSITI~1\POSITI~1.0\XLFLOW\SRC\xlFLOW_1_0.msvc.manifest"
Microsoft (R) Manifest Tool version 5.2.3790.2076
Copyright (c) Microsoft Corporation 2005. 
All rights reserved.
--> del "G:\POSITI~1\POSITI~1.0\XLFLOW\SRC\xlFLOW_1_0.msvc.manifest"
--> mwregsvr G:\POSITION_TOOL\POSITION_TOOL_V2.0\xlFLOW\src\xlFLOW_1_0.dll
  C:\PROGRA~2\MATLAB\R2010A\BIN\MEX.PL: Error: regsvr32 for G:\POSITION_TOOL\POSITION_TOOL_V2.0\xlFLOW\src\xlFLOW_1_0.dll failed.
Error: An error occurred while shelling out to mbuild (error code = 2).
Unable to build executable.

  1 Comment

regsvr32 might require admin privileges perhaps, at least the first time it is run on your behalf.

Sign in to comment.


Answer by Branko Knezevic on 24 May 2011

Oh sorry, when posting the question at the beginning, I copied the line from another log file. I always get error=2.

Otherwise, I am not changing any settings. Just selecting that I want an excel add-in. I tried to do this on my bussines computer so I will first ask IT guys to give me the priveliges.

  0 Comments

Sign in to comment.


Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today