Main Content

Source Code and Binary Deployment

Deploy generated source code and binaries to other environments

Binaries and executables are created from the app, or from the command line. Generate deployable code with an example main function to incorporate the executable or binary into your application. Use these example workflows to inform your projects.

Functions

coder.cevalCall external C/C++ function
coder.cincludeInclude header file in generated code
packNGoPackage generated code in ZIP file for relocation

Objects

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

Topics

Example Workflows

Troubleshooting

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.