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

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.

Use an Example C Main in an Application

Generate and modify an example main function that you use to build a C executable program.

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.

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.