MATLAB Compiler | ![]() ![]() |
Introducing mbuild
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 -p
invokes mbuild
to perform compilation and linking. See the mcc
reference page for complete details on which Compiler options you should use in order to use the mbuild
script.
If you do not want mcc
to invoke mbuild
automatically, you can use the -c
option, for example, mcc -mc filename
.
Compiler Options Files
Options files contain the required compiler and linker settings for your particular C or C++ compiler. The MathWorks provides options files for every supported C or C++ compiler. The options file for UNIX is mbuildopts.sh
; Table 4-3, Compiler Options Files on the PC, contains the PC options files.
Much of the information on options files in this chapter is provided for those users who may need to modify an options file to suit their specific needs. Many users never have to be concerned with how the options files work.
Note If you are developing C++ applications, make sure your C++ compiler supports the templates features of the C++ language. If it does not, you may be unable to use the MATLAB C/C++ Math Library. |
![]() | Overview | Building Stand-Alone Applications on UNIX | ![]() |