MATLAB Compiler    

Building Stand-Alone Applications on UNIX

This section explains how to compile and link C or C++ source code into a stand-alone UNIX application. This section includes

Configuring for C or C++

The mbuild script deduces the type of files you are compiling by the file extension. 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 C or C++, mbuild invokes the C compiler. The MATLAB Compiler generates only .c and .cpp files. Table 4-1, UNIX File Extensions for mbuild, shows the supported file extensions.

Table 4-1: UNIX File Extensions for mbuild
Language
Extension(s)
C
.c
C++
.cpp
.C
.cxx
.cc

Locating Options Files

mbuild locates your options file by searching the following:

mbuild uses the first occurrence of the options file it finds. If no options file is found, mbuild displays an error message.


  Getting Started Preparing to Compile