Workflow to Integrate with a C++ Shared Library That Uses the MATLAB Data API
The workflow to create a C++ shared library that uses the MATLAB® Data API can be summarized as follows:
Package your MATLAB code into an archive (
.ctf
) file using the Library Compiler app or thecompiler.build.cppSharedLibrary
function.Write C++ driver code using the generic interface. For more information, see Writing C++ Driver Code Using the C++ MATLAB Data Array API.
Link the driver code against header files provided with MATLAB Runtime.
Run your application.
For an example of this workflow, see Generate a C++ MATLAB Data API Shared Library and Build a C++ Application.