Contenu principal

La traduction de cette page n'est pas à jour. Cliquez ici pour voir la dernière version en anglais.

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

R2026a
Créer une interface MATLAB® vers une bibliothèque C ou C++ avec la fonction clibPublishInterfaceWorkflow

Pour compiler (publier) une interface MATLAB vers une bibliothèque C ou C++, appelez la fonction clibPublishInterfaceWorkflow. Pour une présentation, consultez How to Publish a MATLAB Interface to a C/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/C++.

Fonctions

clibPublishInterfaceWorkflowCreate live script to publish platform-specific interface for C/C++ library (depuis R2023a)
clibgen.generateLibraryDefinition(Not recommended) Create definition file for C/C++ library
clibgen.buildInterface(Not recommended) Create interface to C/C++ library without definition file

Tâches du Live Editor

Generate C++ InterfaceConfigure and generate MATLAB interface to C/C++ library (depuis R2023a)

Namespaces

clibMATLAB namespace for interface to C/C++ library
clibgen(Not recommended. Instead use objects in the clibgen.api namespace.) Classes to publish MATLAB interface to C++ library using the clibgen.generateLibraryDefinition function

Rubriques

Comment publier une interface

Définir et personnaliser

Partager votre interface

Résolution des problèmes

Build C/C++ Library Interface and Review Contents

When you build a MATLAB interface to a C/C++ library, you can review the contents of the generated interface.

Limitations to C/C++ Support

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

Troubleshooting C/C++ Library Definition Issues

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

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

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

Troubleshooting Calls to C/C++ Library Functions

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

Debug C++ Library from MATLAB Interface

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