MATLAB Compiler Previous page   Next Page

Configuration

This section describes how to configure a C or C++ compiler to work with the MATLAB Compiler. There is a MATLAB utility called mbuild that simplifies the process of setting up a C or C++ compiler. Typically, you only need to use the mbuild utility's setup option to initially specify which third-party compiler you want to use. For more information on the mbuild utility, see the mbuild reference page.

Introducing the mbuild Utility

The MathWorks utility, mbuild, lets you customize the configuration and build process. The mbuild script provides an easy way for you to specify an options file that lets you

The MATLAB Compiler (mcc) automatically invokes mbuild under certain conditions. In particular, mcc -m or mcc -l invokes mbuild to perform compilation and linking.

Configuring an ANSI C or C++ Compiler

Compiler Options Files

Options files contain flags and settings that control the operation of your installed C and C++ compiler. Options files are compiler-specific, i.e., there is a unique options file for each supported C/C++ compiler, which The MathWorks provides.

When you select a compiler to use with the MATLAB Compiler, the corresponding options file is activated on your system. To select a default compiler, use

Additional information on the options files is provided in this chapter for those users who may need to modify them to suit their own needs. Many users never have to be concerned with the inner workings of the options files and only need the setup option to initially designate a C or C++ compiler. If you need more information on options files, see Options Files.

Windows.   Executing the command on Windows gives

The preconfigured options files that are included with MATLAB for Windows are shown below.

Options File
Compiler
lcccompp.bat
Lcc C, Version 2.4 (included with MATLAB)
msvc60compp.bat
msvc70compp.bat
msvc71compp.bat

Microsoft Visual C/C++, Version 6.0
Microsoft Visual C/C++, Version 7.0
Microsoft Visual C/C++, Version 7.1
bcc53compp.bat
bcc54compp.bat
bcc55compp.bat
bcc56compp.bat

Borland C++ Builder 3
Borland C++ Builder 4
Borland C++ Builder 5
Borland C++ Builder 6

UNIX.   Executing the command on UNIX gives

The preconfigured options file that is included with MATLAB for UNIX is mbuildopts.sh, which uses the system native ANSI compiler.


Previous page  Installing an ANSI C or C++ Compiler Special Compiler Notes Next page

© 1994-2005 The MathWorks, Inc.