User`s guide
mcc
7-43
Compiler and Environment Options
-B <filename> (Bundle of Compiler Settings). Replace -B <filename> on the mcc
command line with the contents of the specified file. The file should contain
only
mcc command line options and corresponding arguments and/or other
filenames. The filemay contain other
-B options.You can place optionsthat you
always set in an
mccstartup file. For more information, see ““Setting Up
Default Options” on page 7-32.
-c (C Code Only). Generate C code but do not invoke mex or mbuild,i.e.,donot
produce a MEX-file or stand-alone app lication. This is equivalent to
-T
codegen
placed at the end of the mcc command li ne.
-d <directory> (Output Directory). Place the outputfilesfromthecompilation in the
directory specified by the
-d option.
-h (Helper Functions). Compile helper functions. Any helper functions that are
called will b e co mpile d i nto t he resul ting MEX or s tand-al one ap plicat ion. T he
-m option automatically compiles all helper functi ons, so -m effect iv el y c a lls -h.
Using the
-h option is equivalent to listing the M-files explicitly on the mcc
command line.
The
-h option purposely does not include built-in functions or functions that
appear in the MATLAB M-File Math Library portion of the C/C++ Math
Libraries. This prevents compiling functions that are already part of the C/C++
Math Libraries. If you want to compile these functions as helper functions, you
should specify them explicitly on the command line. For example, use
mcc -m minimize_it fminsearch
instead of
mcc -m -h minimize_it
-I <directory> (Directory Path). Add a new directory path to the list of included
directories. Each
-I option adds a directory to the end of the current search
path. For example,
-I <directory1> -I <directory2>