Create interface to C++ library without definition file
clibgen.buildInterface(
generates a MATLAB® interface to the C++ library defined by
CppFiles
)HeaderFiles
. The name of the interface library file is
, with a
platform-specific file extension. By default, libName
InterfacelibName
is the name the file specified in HeaderFiles
. If you use
more than one header file, then you must specify a
PackageName
argument. If you use a shared library file,
then you must specify a Libraries
argument.
You need a MATLAB-supported C++ compiler. You must build the interface library using the same compiler that was used to build the C++ library. If your library is header-only (does not use a shared library file), then you can choose any supported C++ compiler to build the interface library.
Class constructors, methods, and functions that MATLAB cannot automatically define are not included in the interface. To
include missing functionality, use the clibgen.generateLibraryDefinition
function.
clibgen.buildInterface(
creates the interface for a library with one or more shared library
files.CppFiles
,'Libraries',SharedLibrary
)
clibgen.buildInterface(
generates the interface using one or more name-value pair arguments.CppFiles
,Name,Value
)
Avoid non-ASCII characters in folder and file names, as some locale settings might not support those characters. For information about locale, see Locale Setting Concepts for Internationalization.