DEPLOYMENT ERROR
4 views (last 30 days)
Show older comments
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
Accepted Answer
Friedrich
on 24 May 2011
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
More Answers (3)
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
I hope I could help,
Friedrich
0 Comments
Branko Knezevic
on 24 May 2011
1 Comment
Walter Roberson
on 24 May 2011
regsvr32 might require admin privileges perhaps, at least the first time it is run on your behalf.
See Also
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!