Table 2-5: mbuild Options on Microsoft Windows
Option
|
Description
|
@filename
|
Replace @filename on the mbuild command line with the contents of filename . filename is a response file, i.e., a text file that contains additional command line options to be processed.
|
-c
|
Compile only; do not link.
|
-D<name> [#<def>]
|
Define C preprocessor macro <name> as having value [#<def>]
|
-f <file>
|
Use <file> as the options file; <file> is a full pathname if it is not in the current directory.
|
-g
|
Build an executable with debugging symbols included.
|
-h[elp]
|
Help; prints a description of mbuild and the list of options.
|
-I<pathname>
|
Include <pathname> in the list of directories to search for header files.
|
<name>#<def>
|
Override options file setting for variable <name> . This option is equivalent to <ENV_VAR>#<val> , which temporarily sets the environment variable <ENV_VAR> to <val> for the duration of the call to mex . <val> can refer to another environment variable by prepending the name of the variable with a $ , e.g., COMPFLAGS#"$COMPFLAGS -myswitch" .
|
-inline
|
Inlines matrix accessor functions (mx* ). The generated MEX-function may not be compatible with future versions of MATLAB.
|
-lang <language>
|
Override language choice implied by file extension.
<language> =
c for C
cpp for C++ This option is necessary when you use an unsupported file extension, or when you pass all .o files and libraries.
|
-n
|
Print out any commands that mbuild would have executed, but do not actually execute any of them.
|
-O
|
Build an optimized executable.
|
-outdir <dirname>
|
Place any generated object, resource, or executable files in the directory <dirname> . Do not combine this option with -output if the -output option gives a full pathname.
|
-output <name>
|
Create an executable named <name> . (An appropriate executable extension is automatically appended.)
|
-setup
|
Set up the default compiler and libraries. This option should be the only argument passed.
|
-U<name>
|
Undefine C preprocessor macro <name> .
|
-v
|
Verbose; print all compiler and linker settings.
|