Main Content

本页翻译不是最新的。点击此处可查看最新英文版本。

构建 MATLAB 的 C++ 库接口

要创建 MATLAB® 的 C++ 库接口,请使用 MATLAB clibgen

要编译(发布)MATLAB 的 C++ 库接口,请参阅将 MATLAB 接口发布到 C++ 库的步骤

有关从 MATLAB 调用库中函数的信息,请参阅使用预置的 MATLAB C++ 库接口

函数

clibgen.generateLibraryDefinition为 C++ 库创建定义文件
clibgen.buildInterface在没有定义文件的情况下创建 C++ 库的接口

clibgen 包支持从 MATLAB 调用 C++ 库功能的包和类的汇总

主题

如何发布接口

由头文件和编译的库文件定义的库

头文件/CPP 源文件定义的库

定义和自定义

疑难解答

Build 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++ Library Definition Issues

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