Contenu principal

Créer une interface MATLAB vers une bibliothèque C++

Créer une interface MATLAB® vers une bibliothèque C++ en utilisant le namespace MATLAB clibgen

Pour compiler (publier) une interface MATLAB vers une bibliothèque C++, appelez clibPublishInterfaceWorkflow. Pour une présentation, consultez How to Publish a MATLAB Interface to a C++ Library.

Pour plus d’informations sur l’appel de fonctions de la bibliothèque depuis MATLAB, consultez Utiliser une interface MATLAB prédéfinie vers une bibliothèque C++.

Fonctions

clibPublishInterfaceWorkflowPublish interface for C++ library in the Live Editor (depuis R2023a)
clibgen.generateLibraryDefinitionCreate definition file for C++ library
clibgen.buildInterfaceCreate interface to C++ library without definition file

Tâches du Live Editor

Generate C++ InterfaceGenerate definition file for C++ interface library in the Live Editor (depuis R2023a)

Namespaces

clibgen NamespaceSummary of namespaces and classes to support calling C++ library functionality from MATLAB

Rubriques

Comment publier une interface

Partager votre interface

Résolution des problèmes

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 errors when publishing a MATLAB interface to a C++ library.

Troubleshooting MATLAB Interface to C++ Library Run-Time Issues

Resolve unexpected run-time errors when calling functions in a published MATLAB interface to a C++ shared library.

Troubleshooting Calls to C++ Library Functions

Resolve unexpected issues when calling functions in a C++ shared library.

Debug C++ Library from MATLAB Interface

How to build a debug version of a MATLAB interface to a C++ library.