Main Content

源代码和二进制部署

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

二进制文件和可执行文件是从 App 或命令行创建的。生成具有示例主函数的可部署代码,以将可执行文件或二进制文件合并到您的应用程序中。使用这些示例工作流来通知您的工程。

函数

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

主题

示例工作流

疑难解答

Troubleshoot Failures in Deployed Code

Generate code that includes run-time error detection.

编译器和链接器错误

解决在编译过程中出现错误的常见原因。