Main Content

本页的翻译已过时。点击此处可查看最新英文版本。

源代码和二进制部署

将生成的源代码和二进制文件部署到其他环境中

函数

coder.ceval调用外部 C/C++ 函数
coder.cinclude在生成的代码中包括头文件
packNGoPackage generated code in ZIP file for relocation

对象

coder.HardwareImplementationHardware-specific configuration parameters for C/C++ code generation from MATLAB code
coder.hardwareCreate hardware board configuration object for C/C++ code generation from MATLAB code

主题

示例工作流

Use a Dynamic Library in a Microsoft Visual Studio Project

Integrate a C dynamic library (DLL) generated by MATLAB® Coder™ into a Microsoft® Visual Studio® project.

在应用程序中使用示例 C 主函数

生成并修改用于编译 C 可执行程序的示例主函数。

Deploy Generated C Code to External Hardware: Raspberry Pi Examples

Generate and deploy C code to external hardware

Integrate Multiple Generated C++ Code Projects

Integrate the generated C++ code from two projects into a single larger project.

疑难解答

Troubleshoot Failures in Deployed Code

Generate code that includes run-time error detection.

Compiler and Linker Errors

Address common causes of errors that occur during build.