Contenido principal

Crear una interfaz de MATLAB a una biblioteca de C/C++

Para crear una interfaz de MATLAB® a una biblioteca de C o C++, utilice la función clibPublishInterfaceWorkflow

Para crear (publicar) una interfaz de MATLAB a una biblioteca de C o C++, llame a la función clibPublishInterfaceWorkflow. Para obtener una visión general de la interfaz, consulte How to Publish a MATLAB Interface to a C/C++ Library.

Para obtener información sobre cómo llamar a las funciones en la biblioteca desde MATLAB, consulte Utilizar una interfaz de MATLAB predefinida a una biblioteca de C/C++.

Funciones

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

Tareas de Live Editor

Generar interfaz de C++Generate definition file for C/C++ interface library in the Live Editor (Desde R2023a)

Espacios de nombres

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

Temas

Cómo publicar una interfaz

Compartir su interfaz

Solución de problemas

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.