User`s manual
Custom Building MEX-Files
1-21
series of variable assignments; each variable represents a different logical
piece of the build process.
Table 1-3: MEX Script Switches
Switch Function
@<rsp_file>
Include the contents of the text file <rsp_file> as
command line arguments to the
mex script.
-argcheck
Perform argument checking on MATLAB API
functions (C functions only).
-c
Compile only; do not link.
-D<name>[#<def>]
Define C preprocessor macro <name> [as having
value
<def>]. (Note: UNIX also allows
-D<name>[=<def>].)
-f <file>
Use <file> as the options file; <file> is a full
pathname if it is not in current directory.
-g
Build an executable with debugging symbols
included.
-h[elp]
Help; lists the switches and their functions.
-I<pathname>
Include <pathname> in the compiler include search
path.
-inline
Inlines matrix accessor functions (mx*). The
generated MEX-function may not be compatible
with future versions of MATLAB.
-l<file>
(UNIX) Link against library lib<file>.
-L<pathname>
(UNIX) Include <pathname> in the list of directories
to search for libraries.