User`s guide

Microsoft Windows on PCs
2-17
Compiler Options Files
The MathWorks provides options files for every supported C or C++ compiler.
These files contain the necessary flags and settings for the compiler. This table
shows the preconfigured PC options files that are included with MATLAB.
Locating Options Files
To locate your options file, the mex script searches the following:
T he current directory
The
user profile directory (see the following section, “The User Profile
Directory Under Windows,” for more information about th is directory)
mex uses the first occurrence o f the options file it finds. If no options fil e is
found,
mex searches your machine for a supported C compiler and uses the
factory default options file for that compiler. If multiple compilers are found,
you are prompted to select one.
The User Profile Directory Under Windows. The Windows user profile directory is
adirectorythatcontainsuser-specificinformation suchasdesktopappearance,
recently used files, and
Start menu items. The mex and mbuild utilities store
their respectiv e options file s,
mexopts.bat and compopts.bat,whichare
Compiler Options File
Lcc C, Ver s i on 2.4 (in c l u d ed with
MATLAB)
lccopts.bat
Microsoft C /C++, Version 5.0
Microsoft C /C++, Version 6.0
msvc50opts.bat
msvc60opts.bat
Watcom C/C++, Version 10.6
Watcom C/C++, Version 11.0
watcopts.bat (supported for mex
only, not for mbuild)
wat11copts.bat (supported for mex
only, not for mbuild)
Borland C++, Version 5.0
Borland C++, Version 5.2
Borland C++ Builder 3
Borland C++ Builder 4
Borland C++ Builder 5
bccopts.bat
bccopts.bat
bcc53opts.bat
bcc54opts.bat
bcc55opts.bat