User`s guide

2 Installation and Configuration
2-16
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:
The current directory
The
user profile directory (see the following section, The User Profile
Directory Under Windows, for more information about this directory)
mex uses the first occurrence of the options file it finds. If no options file 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
a directory that contains user-specific information such as desktop appearance,
recently used files, and
Start menu items. The mex and mbuild utilities store
their respective options files,
mexopts.bat and compopts.bat, which are
Compiler Options File
Lcc C, Version 2.4 (included with
MATLAB)
lccopts.bat
Microsoft Visual C/C++, Version 5.0
Microsoft Visual C/C++, Version 6.0
Microsoft Visual C/C++, Version 7.0
msvc50opts.bat
msvc60opts.bat
msvc70opts.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++ Builder 3
Borland C++ Builder 4
Borland C++ Builder 5
Borland C++ Builder 6
bcc53opts.bat
bcc54opts.bat
bcc55opts.bat
bcc56opts.bat