Why do I receive an error referencing mex.pl when I try to compile with MATLAB Compiler 4.1.1 (R14SP1+)?
5 views (last 30 days)
Show older comments
When I try to compile an application using the command:
mcc -md C:\TEMP\ magicsquare.m
I receive the following error message:
D:\APPLICATIONS\MATLAB701\BIN\WIN32\\..\WIN32\MEX.PL: Error: No file names given.
'-e' is not recognized as an internal or external command,
operable program or batch file.
Error: An error occurred while shelling out to mbuild (error code = 1).
Unable to build executable.
??? Error executing mcc, return status = 1.
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
This change has been incorporated into the documentation in Release 14 Service Pack 3 (R14SP3). For previous releases, read below for any additional information:
This error occurs when a backslash (\) is added to the end of the output directory specified with the -d option. To work around this issue, avoid this backslash as in the following command:
mcc -md C:\TEMP magicsquare.m
0 Comments
More Answers (0)
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!