User`s guide
Command Overview
mcc -vW main -T link:exe myfun % Options combined
This format is not valid:
mcc -Wv main -T link:exe myfun
In cases where you have more than one option that takes arguments, you can
only include one of those o ptions in a combined list and that option must be
last. You can place multiple combined lists on the
mcc command line.
If you include any C or C++ filenames on the
mcc comm and line, the files are
passed directly to
mbuild, along with any MATLAB Compiler generated C
or C++ files.
Conflicting Options on the Command Line
If you use conflicting options, MATLAB Compiler resolves them from left to
right, with the rightmost option taking precedence. For example, using the
equivalencies in “Macro Options” on page 5-5,
mcc -m -W none test.m
is equivalent to:
mcc -W main -T link:exe -W none test.m
In this example, there are two conflicting -W options. After working from
left to right, MATLAB Compiler determines that the rightmost option takes
precedence, namely,
-W none, and MATLAB Compiler does not generate a
wrapper.
Caution Macros and regular options may both affect the same settings and
may therefore override each other depending on their order in the command
line.
Using File Extensions
The valid, recommended file extensionforafilesubmittedtoMATLAB
Comp iler is
.m. Always specify the complete filename, including the .m
5-3