Generate C++ Interface
Description
The Generate C++ Interface task lets you interactively configure and generate a library definition file for a C++ interface. This task accomplishes one step in the workflow to publish a MATLAB® interface to a C++ library defined by C/C++ files and compiled library files. The Generate C++ Interface task automatically generates MATLAB code for your live script. For more information about Live Editor tasks generally, see Add Interactive Tasks to a Live Script.
Using this task, you can:
Specify the type of files in the C++ library.
Select a C++ compiler.
Name the interface library. For example, to call library
libname
from MATLAB, use theclib.libname
namespace.Generate a definition file.
Display constructs in the definition file.
Open the Task
Use the Generate C++ Interface task as part of the
workflow to publish a C++ interface for MATLAB. The recommended approach to access this task
is to call the clibPublishInterfaceWorkflow
function, which incorporates this Live Editor task
into the steps of the publish workflow. This Live Editor task is useful only when combined
with the steps to generate, build, and test the interface.
Parameters
More About
Version History
Introduced in R2023a