When running a graphical interface from your Mac or Linux desktop, use Create Standalone Application from MATLAB as a template for building a standalone application with the Application Compiler. Use Compile C/C++ Shared Libraries with Library Compiler App for creating a shared library with the Library Compiler.
For compiling your application at the command line, there are separate Macintosh and non-Macintosh instructions for Mac or Linux platforms.
Use the section Input and Output Files for lists of files produced
and supplied to mcc
when building a C shared library,
or a C++ shared library.
Use the section Input and Output Files for lists of files produced
and supplied to mcc
when building a Macintosh 64 (Maci64) application.