User`s manual

Building MEX-Files
1-17
In addition to running the mex script from the MATLAB prompt, you can also
run the script from the system prompt.
Specifying an Options File
You can use the -f option to specify an options file on either UNIX or Windows.
To use the
-f option, at the MATLAB prompt type
mex filename -f <optionsfile>
and specify the name of the options file along with its pathname. The Options
Files table, below, contains a list of the options files included with MATLAB.
There are several situations when it may be necessary to specify an options file
every time you use the
mex script. These include:
(Windows and UNIX) You want to use a different compiler (and not use the
-setup option), or you want to compile MAT or engine stand-alone programs.
(UNIX) You do not want to use the system C compiler.
Preconfigured Options Files
MATLAB includes some preconfigured options files that you can use with
particular compilers. The Options Files table lists the compilers whose options
files are included with this release of MATLAB.
Table 1-2: Options Files
Platform Compiler Options File
Windows Borland C++, Version 5.0 & 5.2
bccopts.bat
Borland C++Builder 3.0 (Borland
C++, Version 5.3)
bcc53opts.bat
Borland C++Builder 4.0 (Borland
C++, Version 5.4)
bcc54opts.bat
Borland C++Builder 5.0 (Borland
C++, Version 5.5)
bcc55opts.bat
Lcc C Compiler, bundled with
MATLAB
lccopts.bat