User`s guide

4 Stand-Alone Applications
4-16
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++
Preparing to Compile
Verifying mbuild
Verifying the MATLAB Compiler
About the mbuild Script
Using an IDE
Distributing Stand-Alone Windows Applications
Configuring for C or C++
mbuild determines wh e ther to compile in C o r C + + b y ex amining the type o f
files yo u are compiling. This table sh ow s the file ext ensions 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 f rom 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