MATLAB Compiler - Excel Add-in - 'Error Code = 255 Unable to build executable'
4 views (last 30 days)
Show older comments
Good morning,
I am having a lot of difficulty using the compiler for an excel add-in. I have the following compiler:
Selected compiler:
Through mbuild -setup i have selected the following:
[1] Lcc-win32 C 2.4.1 [2] Microsoft Software Development Kit (SDK) 7.1 [3] Microsoft Visual C++ 6.0 [4] Microsoft Visual C++ 2005 SP1 [5] Microsoft Visual C++ 2008 SP1 [6] Microsoft Visual C++ 2010
[0] None
Compiler: 1
Your machine has a Lcc-win32 C compiler located at C:\PROGRA~2\MATLAB\R2012b\sys\lcc. Do you want to use this compiler [y]/n? n Please enter the location of your compiler: [C:\PROGRA~2\MATLAB\R2012b\sys\lcc] C:\Program Files (x86)\MATLAB\R2012b\sys\lcc\bin
Please verify your choices:
Compiler: Lcc-win32 C 2.4.1 Location: C:\Program Files (x86)\MATLAB\R2012b\sys\lcc\bin
Are these correct [y]/n? y
...
My error message after multiple attempts continues to be :
Compiler version: 4.18 (R2012b) Processing C:\Program Files (x86)\MATLAB\R2012b\toolbox\matlab\mcc.enc
Processing C:\Program Files (x86)\MATLAB\R2012b\toolbox\shared\optimlib\mcc.enc
Processing C:\Program Files (x86)\MATLAB\R2012b\toolbox\finance\mcc.enc
Processing C:\Program Files (x86)\MATLAB\R2012b\toolbox\optim\mcc.enc
Processing C:\Program Files (x86)\MATLAB\R2012b\toolbox\distcomp\mcc.enc
Processing C:\Program Files (x86)\MATLAB\R2012b\toolbox\stats\mcc.enc
Processing include files... 2 item(s) added. Processing directories installed with MCR...
The file P:\PLACEMENT\Quant Team\Projets-Requetes\2016-08-01 Risk Parity\nm12\src\mccExcludedFiles.log contains a list of functions excluded from the CTF archive. 0 item(s) added.
Generating MATLAB path for the compiled application... Created 55 path items. Begin validation of MEX files: Mon Aug 29 09:49:01 2016 Validating 'C:\Program Files (x86)\MATLAB\R2012b\bin\win32\activeset.dll'. No conflicting MATLAB file found. Validating 'C:\Program Files (x86)\MATLAB\R2012b\bin\win32\barrierqplp.dll'. No conflicting MATLAB file found. Validating 'C:\Program Files (x86)\MATLAB\R2012b\bin\win32\optimutil.dll'. No conflicting MATLAB file found. Validating 'C:\Program Files (x86)\MATLAB\R2012b\toolbox\distcomp\@distcomp\dctCmdWindowSize.mexw32'. No conflicting MATLAB file found. Validating 'C:\Program Files (x86)\MATLAB\R2012b\toolbox\distcomp\bin\win32\DotnetUtilities.dll'. No conflicting MATLAB file found. Validating 'C:\Program Files (x86)\MATLAB\R2012b\toolbox\distcomp\bin\win32\HpcServerSoaClient.dll'. No conflicting MATLAB file found. Validating 'C:\Program Files (x86)\MATLAB\R2012b\toolbox\distcomp\bin\win32\MdcsServiceProxy.dll'. No conflicting MATLAB file found. Validating 'C:\Program Files (x86)\MATLAB\R2012b\toolbox\distcomp\cluster\+parallel\+internal\+cluster\workerShutdown.mexw32'. No conflicting MATLAB file found. Validating 'C:\Program Files (x86)\MATLAB\R2012b\toolbox\distcomp\distcomp\dct_psfcns.mexw32'. No conflicting MATLAB file found. Validating 'C:\Program Files (x86)\MATLAB\R2012b\toolbox\distcomp\distcomp\distcompByteBuffer2MxArray.mexw32'. No conflicting MATLAB file found. Validating 'C:\Program Files (x86)\MATLAB\R2012b\toolbox\distcomp\distcomp\distcompMakeByteBufferHandle.mexw32'. No conflicting MATLAB file found. Validating 'C:\Program Files (x86)\MATLAB\R2012b\toolbox\distcomp\distcomp\distcompMxArray2ByteBuffer.mexw32'. No conflicting MATLAB file found. Validating 'C:\Program Files (x86)\MATLAB\R2012b\toolbox\distcomp\distcomp\distcompdeserialize.mexw32'. No conflicting MATLAB file found. Validating 'C:\Program Files (x86)\MATLAB\R2012b\toolbox\distcomp\distcomp\distcompserialize.mexw32'. No conflicting MATLAB file found. Validating 'C:\Program Files (x86)\MATLAB\R2012b\toolbox\distcomp\distcomp\getUncPathFromMappedDrive.mexw32'. No conflicting MATLAB file found. Validating 'C:\Program Files (x86)\MATLAB\R2012b\toolbox\distcomp\distcomp\pct_unsetenvmex.mexw32'. No conflicting MATLAB file found. Validating 'C:\Program Files (x86)\MATLAB\R2012b\toolbox\distcomp\private\dctPathAndClearNotification.mexw32'. No conflicting MATLAB file found. Validating 'C:\Program Files (x86)\MATLAB\R2012b\toolbox\distcomp\private\dctRegisterMpiFunctions.mexw32'. No conflicting MATLAB file found. Validating 'C:\Program Files (x86)\MATLAB\R2012b\toolbox\optim\optim\private\activesetqp.mexw32'. No conflicting MATLAB file found. Validating 'C:\Program Files (x86)\MATLAB\R2012b\toolbox\stats\stats\@sobolset\private\DNToMatrix.mexw32'. No conflicting MATLAB file found. Validating 'C:\Program Files (x86)\MATLAB\R2012b\toolbox\stats\stats\@sobolset\private\MatrixToDN.mexw32'. No conflicting MATLAB file found. Validating 'C:\Program Files (x86)\MATLAB\R2012b\toolbox\stats\stats\@sobolset\private\computeDN.mexw32'. No conflicting MATLAB file found. Validating 'C:\Program Files (x86)\MATLAB\R2012b\toolbox\stats\stats\@sobolset\private\convertToDouble.mexw32'. No conflicting MATLAB file found. Validating 'C:\Program Files (x86)\MATLAB\R2012b\toolbox\stats\stats\@sobolset\private\matrixBitXor.mexw32'. No conflicting MATLAB file found. Validating 'C:\Program Files (x86)\MATLAB\R2012b\toolbox\stats\stats\@sobolset\private\sobolIndexed.mexw32'. No conflicting MATLAB file found. Validating 'C:\Program Files (x86)\MATLAB\R2012b\toolbox\stats\stats\@sobolset\private\sobolNet.mexw32'. No conflicting MATLAB file found. Validating 'C:\Program Files (x86)\MATLAB\R2012b\toolbox\stats\stats\@sobolset\private\sobolPoint.mexw32'. No conflicting MATLAB file found. Validating 'C:\Program Files (x86)\MATLAB\R2012b\toolbox\stats\stats\@sobolset\private\sobolSequence.mexw32'. No conflicting MATLAB file found. End validation of MEX files: Mon Aug 29 09:49:02 2016 Warning: Adding path "P:\PLACEMENT\Quant Team\Projets-Requetes\2016-08-01 Risk Parity" to Compiler path instance. Parsing file "P:\PLACEMENT\Quant Team\Projets-Requetes\2016-08-01 Risk Parity\RiskParity_weights.m" (Referenced from: "Compiler Command Line"). Parsing file "C:\Program Files (x86)\MATLAB\R2012b\toolbox\compiler\deploy\deployprint.m" (Referenced from: "Compiler Command Line"). Parsing file "C:\Program Files (x86)\MATLAB\R2012b\toolbox\compiler\deploy\printdlg.m" (Referenced from: "Compiler Command Line"). Deleting 28 temporary MEX authorization files. Removing: 'C:\Users\villau01\AppData\Local\Temp\mathworks_tmp_7804_12685_7804.auth'. Removing: 'C:\Users\villau01\AppData\Local\Temp\mathworks_tmp_7804_22340_7804.auth'. Removing: 'C:\Users\villau01\AppData\Local\Temp\mathworks_tmp_7804_6661_7804.auth'. Removing: 'C:\Users\villau01\AppData\Local\Temp\mathworks_tmp_7804_19971_7804.auth'. Removing: 'C:\Users\villau01\AppData\Local\Temp\mathworks_tmp_7804_13687_7804.auth'. Removing: 'C:\Users\villau01\AppData\Local\Temp\mathworks_tmp_7804_19519_7804.auth'. Removing: 'C:\Users\villau01\AppData\Local\Temp\mathworks_tmp_7804_23088_7804.auth'. Removing: 'C:\Users\villau01\AppData\Local\Temp\mathworks_tmp_7804_19572_7804.auth'. Removing: 'C:\Users\villau01\AppData\Local\Temp\mathworks_tmp_7804_10383_7804.auth'. Removing: 'C:\Users\villau01\AppData\Local\Temp\mathworks_tmp_7804_9720_7804.auth'. Removing: 'C:\Users\villau01\AppData\Local\Temp\mathworks_tmp_7804_23230_7804.auth'. Removing: 'C:\Users\villau01\AppData\Local\Temp\mathworks_tmp_7804_10856_7804.auth'. Removing: 'C:\Users\villau01\AppData\Local\Temp\mathworks_tmp_7804_14659_7804.auth'. Removing: 'C:\Users\villau01\AppData\Local\Temp\mathworks_tmp_7804_3206_7804.auth'. Removing: 'C:\Users\villau01\AppData\Local\Temp\mathworks_tmp_7804_27277_7804.auth'. Removing: 'C:\Users\villau01\AppData\Local\Temp\mathworks_tmp_7804_7237_7804.auth'. Removing: 'C:\Users\villau01\AppData\Local\Temp\mathworks_tmp_7804_22762_7804.auth'. Removing: 'C:\Users\villau01\AppData\Local\Temp\mathworks_tmp_7804_19970_7804.auth'. Removing: 'C:\Users\villau01\AppData\Local\Temp\mathworks_tmp_7804_19539_7804.auth'. Removing: 'C:\Users\villau01\AppData\Local\Temp\mathworks_tmp_7804_907_7804.auth'. Removing: 'C:\Users\villau01\AppData\Local\Temp\mathworks_tmp_7804_31814_7804.auth'. Removing: 'C:\Users\villau01\AppData\Local\Temp\mathworks_tmp_7804_23687_7804.auth'. Removing: 'C:\Users\villau01\AppData\Local\Temp\mathworks_tmp_7804_24229_7804.auth'. Removing: 'C:\Users\villau01\AppData\Local\Temp\mathworks_tmp_7804_2245_7804.auth'. Removing: 'C:\Users\villau01\AppData\Local\Temp\mathworks_tmp_7804_15206_7804.auth'. Removing: 'C:\Users\villau01\AppData\Local\Temp\mathworks_tmp_7804_1933_7804.auth'. Removing: 'C:\Users\villau01\AppData\Local\Temp\mathworks_tmp_7804_17201_7804.auth'. Removing: 'C:\Users\villau01\AppData\Local\Temp\mathworks_tmp_7804_14825_7804.auth'. Generating file "P:\PLACEMENT\Quant Team\Projets-Requetes\2016-08-01 Risk Parity\nm12\src\nm12_idl.idl". Generating file "P:\PLACEMENT\Quant Team\Projets-Requetes\2016-08-01 Risk Parity\nm12\src\Class1_com.hpp". Generating file "P:\PLACEMENT\Quant Team\Projets-Requetes\2016-08-01 Risk Parity\nm12\src\Class1_com.cpp". Generating file "P:\PLACEMENT\Quant Team\Projets-Requetes\2016-08-01 Risk Parity\nm12\src\nm12_dll.cpp". Generating file "P:\PLACEMENT\Quant Team\Projets-Requetes\2016-08-01 Risk Parity\nm12\src\nm12.def". Generating file "P:\PLACEMENT\Quant Team\Projets-Requetes\2016-08-01 Risk Parity\nm12\src\nm12.rc". Generating file "P:\PLACEMENT\Quant Team\Projets-Requetes\2016-08-01 Risk Parity\nm12\src\nm12.bas". Generating file "P:\PLACEMENT\Quant Team\Projets-Requetes\2016-08-01 Risk Parity\nm12\src\nm12.xla". Generating file "P:\PLACEMENT\Quant Team\Projets-Requetes\2016-08-01 Risk Parity\nm12\src\readme.txt". Executing command: ""C:\Program Files (x86)\MATLAB\R2012b\bin\mbuild" -O -v -output "nm12_1_0" -I"P:\PLACEMENT\Quant Team\Projets-Requetes\2016-08-01 Risk Parity\nm12\src" "mwcomtypes.idl" "P:\PLACEMENT\Quant Team\Projets-Requetes\2016-08-01 Risk Parity\nm12\src\nm12_idl.idl" "mwcomtypes.idl" "mwcomtypes.idl" "mwcomtypes.idl" "mclxlmain.lib" "P:\PLACEMENT\Quant Team\Projets-Requetes\2016-08-01 Risk Parity\nm12\src\Class1_com.cpp" "mwcomtypes.idl" "P:\PLACEMENT\Quant Team\Projets-Requetes\2016-08-01 Risk Parity\nm12\src\nm12_dll.cpp" "mwcomtypes.idl" "P:\PLACEMENT\Quant Team\Projets-Requetes\2016-08-01 Risk Parity\nm12\src\nm12.def" "mwcomtypes.idl" "P:\PLACEMENT\Quant Team\Projets-Requetes\2016-08-01 Risk Parity\nm12\src\nm12.rc" -link dll -outdir "P:\PLACEMENT\Quant Team\Projets-Requetes\2016-08-01 Risk Parity\nm12\src" -regsvr -useronly"-> Default options filename found in C:\Users\villau01\AppData\Roaming\MathWorks\MATLAB\R2012b ---------------------------------------------------------------- -> Options file = C:\Users\villau01\AppData\Roaming\MathWorks\MATLAB\R2012b\compopts.bat -> COMPILER = lcc -> Compiler flags: COMPFLAGS = -c -Zp8 -I"C:\PROGRA~2\MATLAB\R2012b\sys\lcc\include" -noregistrylookup OPTIMFLAGS = -DNDEBUG DEBUGFLAGS = -g4 arguments = -I"P:\PLACEMENT\Quant Team\Projets-Requetes\2016-08-01 Risk Parity\nm12\src" Name switch = -Fo -> Pre-linking commands = -> LINKER = lcclnk -> Link directives: LINKFLAGS = -dll "C:\Users\villau01\AppData\Local\Temp\mbuild_pQSvwH\templib.def" -tmpdir "P:\PLACEMENT\Quant Team\Projets-Requetes\2016-08-01 Risk Parity\nm12\src\." -L"C:\PROGRA~2\MATLAB\R2012b\sys\lcc\lib" -libpath "C:\PROGRA~2\MATLAB\R2012b\extern\lib\win32\lcc" "C:\Users\villau01\AppData\Local\Temp\mbuild_pQSvwH\templib_stub.obj" LINKFLAGSPOST = mclmcrrt.lib Name directive = -o "P:\PLACEMENT\Quant Team\Projets-Requetes\2016-08-01 Risk Parity\nm12\src\nm12_1_0.dll" File link directive = Lib. link directive = Rsp file indicator = @ -> Resource Compiler = -> Resource Linker = ---------------------------------------------------------------- C:\PROGRA~2\MATLAB\R2012B\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.
0 Comments
Answers (1)
Vidya Viswanathan
on 2 Sep 2016
Hi Charles,
I notice that you have chosen LCC-win32 for Excel Add-in in MATLAB R2012b (32-bit). Although this compiler is supported for MEX-file compilation and creation of C/C++ shared libraries, you would require a Microsoft compiler to compile and use any COM object and LCC would not suffice. You could probably try using Microsoft Windows SDK 7.1 (I see that you have installed in already). For a complete list of supported compilers, refer to the following documentation:
Regards,
Vidya
0 Comments
See Also
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!