User`s guide

4
Stand-Alone
Applications
This chapter explains how to use the MATLAB Compiler to code and build stand-alone applications.
Stand-alone applications run without the help of the MATLAB interpreter. In fact, stand-alone
applications run even if MATLAB is not installed on the system. However, stand-alone applications
do require the run-time shared libraries, which are detailed in the corresponding sections.
Differences Between MEX-Files and
Stand-Alone Applications (p. 4-2)
Overview of the differences
Building Stand-Alone C/C++
Applications (p. 4-4)
Steps to create stand-alone C/C++ applications
Building Stand-Alone Applications on
UNIX (p. 4-7)
UNIX-specific steps to create stand-alone applications
Building Stand-Alone Applications on
PCs (p. 4-15)
PC-specific steps to create stand-alone applications
Distributing Stand-Alone Applications
(p. 4-27)
Packaging applications for users
Building Shared Libraries (p. 4-30) Steps to create C shared libraries
Building COM Objects (p. 4-31) Steps to create COM objects
Building Excel Plug-Ins (p. 4-32) Steps to create Excel plug-ins
Troubleshooting (p. 4-33) Common problems with
mbuild and the MATLAB
Compiler
Coding with M-Files Only (p. 4-36) Creating stand-alone applications from M-files and
MEX-files
Alternative Ways of Compiling M-Files
(p. 4-40)
Other ways of compiling M-files
Mixing M-Files and C or C++ (p. 4-42) Creating applications from M-files and C/C++ code