MATLAB Compiler | ![]() ![]() |
Stand-Alone C++ Applications
To build stand-alone C++ applications, MATLAB, the MATLAB Compiler, a C++ compiler, and the MATLAB C/C++ Math Library must be installed on your system.
The source code for a stand-alone C++ application consists either entirely of M-files or some combination of M-files, MEX-files, and C or C++ source code files.
The MATLAB Compiler, when invoked with the appropriate option flag (-p
or -L Cpp
), translates input M-files into C++ source code suitable for your own stand-alone applications. After compiling this C++ source code, the resulting object files are linked against the MATLAB C/C++ Math Library. For more information about distributing a C++ application, see Distributing Stand-Alone Applications.
Note On the PC, the MATLAB C++ Math Library is static because the different PC compiler vendors use different C++ name-mangling algorithms. |
![]() | Stand-Alone C Applications | Building Stand-Alone C/C++ Applications | ![]() |