Why do I receive an error "Error: An error occurred while shelling out to mbuild (error code = 128)" when compiling a MATLAB file?
3 views (last 30 days)
Show older comments
I am using MATLAB Compiler 4.11 (R2009b) to compile my MATLAB file on a machine with the following specifications:
Operating System: Microsoft Windows XP x64 Version 5.2 (Build 3790: Service Pack 2)
Compiler: Microsoft Visual C++ 2008 Express
I am using the MCC command as follows:
mcc -mv test1234.m
However, I get the following error:
C:\PROGRA~1\MATLAB\R2009B\BIN\MEX.PL: Error: Compile of 'test1234_main.c' failed.
Error: An error occurred while shelling out to mbuild (error code = 128).
Unable to build executable.
??? Error using ==> mcc
Error executing mcc, return status = 1 (0x1).
This issue occurs only on the machine mentioned above. I can compile the same MATLAB file without any errors on another machine.
Accepted Answer
MathWorks Support Team
on 10 Nov 2009
To work around this issue, reinstall Microsoft Visual Studio.
0 Comments
More Answers (0)
See Also
See Also
Categories
Find more on Deploy to C++ Applications Using mwArray API (C++03) 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!