Hauptinhalt

Erstellen einer MATLAB-Schnittstelle zu einer C/C++ Bibliothek

Um eine MATLAB®-Schnittstelle zu einer C oder C++ Bibliothek zu erstellen, verwenden Sie die Funktion clibPublishInterfaceWorkflow

Um eine MATLAB-Schnittstelle zu einer C oder C++ Bibliothek zu erstellen (publishen), rufen Sie die Funktion clibPublishInterfaceWorkflow auf. Einen Überblick finden Sie unter How to Publish a MATLAB Interface to a C/C++ Library.

Informationen über den Aufruf von Funktionen in der Bibliothek aus MATLAB heraus finden Sie unter Verwenden einer vordefinierten MATLAB-Schnittstelle zu einer C/C++ Bibliothek.

Funktionen

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

Live Editor Tasks

Erstellen einer C++ SchnittstelleGenerate definition file for C/C++ interface library in the Live Editor (Seit R2023a)

Namespaces

clibMATLAB namespace for interface to C/C++ library
clibgenClasses to publish MATLAB interface to C++ library using the Generate C++ Interface task or the clibgen.generateLibraryDefinition function

Themen

So veröffentlichen Sie eine Schnittstelle

Definieren und individuell anpassen

Schnittstelle freigeben

Fehlersuche

Build C/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/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++ shared library.

Troubleshooting Calls to C/C++ Library Functions

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

Debug C++ Library from MATLAB Interface

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