Main Content

BuildMATLABInterface to C++ Library

To create a MATLAB®interface to a C++ library, use the MATLABclibgenpackage

To build (publish) a MATLAB interface to a C++ library, seeSteps to Publish a MATLAB Interface to a C++ Library.

For information about calling functions in the library from MATLAB, seeUse Prebuilt MATLAB Interface to C++ Library.

Functions

clibgen.generateLibraryDefinition Create definition file for C++ library
clibgen.buildInterface Create interface to C++ library without definition file

Packages

clibgen Package Summary of packages and classes to support calling C++ library functionality fromMATLAB

Topics

How To Publish an Interface

特定于平台的库文件的例子

Examples for Libraries Defined by Header/CPP Source Files

Define and Customize

Troubleshooting

Build C++ Library Interface and Review Contents

If library functionality is missing, the library might contain unsupported language features or data types.

Limitations to C/C++ Support

C/C++ library features not supported in MATLAB.

Troubleshooting C++ Library Definition Issues

Information for resolving error when publishing a MATLAB interface to a C++ library.