MATLAB Compiler    

Microsoft Windows on PCs

This section examines the system requirements, installation procedures, and configuration procedures for the MATLAB Compiler on PCs running Windows 95/98/2000 or Windows NT.

System Requirements

You cannot install the MATLAB Compiler unless MATLAB 6/Release 12 is already installed on the system. The MATLAB Compiler imposes no operating system or memory requirements beyond what is necessary to run MATLAB. The MATLAB Compiler consumes a small amount of disk space.

This table shows the requirements for creating PC applications with the MATLAB Compiler.

Table 2-3: Requirements for Creating PC Applications
To create...
You need...
MEX-files
ANSI C compiler (see following note)
MATLAB Compiler
Stand-alone C applications
ANSI C compiler (see following note)
MATLAB Compiler
MATLAB C/C++ Math Library
Stand-alone C++ applications
C++ compiler
MATLAB Compiler
MATLAB C/C++ Math Library

The MATLAB C/C++ Math Library is a separately sold product; the MATLAB C/C++ Graphics Library is a separately sold product. If your application uses Handle Graphics, you will need the MATLAB C/C++ Graphics Library to develop stand-alone applications.

Supported ANSI C and C++ PC Compilers

To create C MEX-files, stand-alone C/C++ applications, or dynamically linked libraries (DLLs) with the MATLAB Compiler, you must install and configure a supported C/C++ compiler. Use one of the following 32-bit C/C++ compilers that create 32-bit Windows dynamically linked libraries (DLLs) or Windows NT applications:

To create stand-alone applications or DLLs, you also need the MATLAB C/C++ Math Library, which is sold separately. Also, if your applications use Handle Graphics, you will need the MATLAB C/C++ Graphics Library, which is sold separately.

Applications generated by the MATLAB Compiler are 32-bit applications and only run on Windows 95/98/2000 and Windows NT systems.

Known Compiler Limitations.   There are several known restrictions regarding the use of supported compilers:

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.

Compiler
Options File
Lcc C, Version 2.4 (included 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

Locating Options Files

To locate your options file, the mex script searches the following:

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 created during the -setup process, in a subdirectory of your user profile directory, named Application Data\MathWorks\MATLAB\R12. Under Windows NT and Windows 95/98/2000 with user profiles enabled, your user profile directory is %windir%\Profiles\username. Under Windows 95/98/2000 with user profiles disabled, your user profile directory is %windir%. Under Windows 95/98/2000, you can determine whether or not user profiles are enabled by using the Passwords control panel.


 MATLAB Compiler Verification Installation