User`s guide

Building Stand-Alone Applications on PCs
4-15
Building Stand-Alone Applications on PCs
This section explains how to compile and link the C/C++ code generated from
the MATLAB Compiler into a stand-alone Windows application. This section
includes
Configuring for C or C++ on page 4-15
Preparing to Compile on page 4-16
Verifying mbuild on page 4-22
Verifying the MATLAB Compiler on page 4-23
About the mbuild Script on page 4-23
Using an Integrated Development Environment on page 4-23
Distributing Stand-Alone Applications on page 4-27
Configuring for C or C++
mbuild determines whether to compile in C or C++ by examining the type of
files you are compiling. Table 4-2, Windows File Extensions for mbuild, shows
the file extensions that
mbuild interprets as indicating C or C++ files.
If you include both C and C++ files,
mbuild uses the C++ compiler and the
MATLAB C++ Math Library.
If
mbuild cannot deduce from the file extensions whether to compile in C or
C++,
mbuild invokes the C compiler.
Table 4-2: Windows File Extensions for mbuild
Language Extension(s)
C
.c
C++
.cpp
.cxx
.cc