Main Content

MATLAB Compiler SDK C++ Target Requirements

System and Product Requirements

System Dependencies

MATLAB® Compiler SDK™ provides two ways to deploy MATLAB functions within C++ applications:

  • Deploy to C++ applications using MATLAB Data API

  • Deploy to C++ applications using mwArray API

When deploying to C++ applications using the MATLAB Data API, MATLAB functions are packaged into an archive (.ctf) file. This archive can be deployed in C++ applications across platforms provided it does not contain any platform-specific code or dependencies.

When deploying to C++ applications using the mwArray API, a shared library and a header file are created which are platform-specific.

Product Dependencies

The following products must be installed alongside MATLAB Compiler SDK:

  • MATLAB

  • MATLAB Compiler™

MATLAB functions deployed to C++ applications require MATLAB Runtime during execution. For details, see Install and Configure MATLAB Runtime.

Supported C++ Compilers

For a list of platform-specific supported C++ compilers, see Supported and Compatible Compilers on the MathWorks® website.

Data API

MathWorks provides two data APIs for handling data exchange between a C++ application and deployed MATLAB functions:

  • MATLAB Data API.

  • mwArray API.

These data APIs are installed on your system when you install MATLAB and MATLAB Compiler SDK or MATLAB Runtime.

MATLAB Data API is shared between MATLAB Compiler SDK and MATLAB Engine. For details, see MATLAB Data API for C++.

Development Environment

For details, see Setting Up C++ Development Environment.

Cross-platform Support

When deploying to C++ applications using the MATLAB Data API, MATLAB functions are packaged into an archive (.ctf file). This archive can deployed across platforms provided it does not contain any platform-specific code or dependencies.

When deploying to C++ applications using the mwArray API, a shared library and a header file are created which are platform-specific.

Related Topics