mcc Command Arguments Listed Alphabetically
Option | Description | Comment |
---|---|---|
| Display | |
Add | If you specify a folder name, all files in the folder are
added. If you use a wildcard ( | |
| Add platforms to the list of supported platforms detected automatically by the compiler. |
|
| Generate Excel® compatible formula function. | Requires MATLAB® Compiler™ for Excel add-ins. |
| Replace | The file should contain only |
| Suppress compiling and linking of the generated C wrapper code. | Must be used in conjunction with the |
| Direct | |
| Place output in folder specified by
| |
| Suppress appearance of the MS-DOS Command Window when launching the generated standalone application. | Use The Standalone Application Compiler app suppresses the MS-DOS command window by default. To enable it, select Standalone Windows Application in the Application Type area. |
| Use the specified options file,
|
|
| Include debugging symbol information for generated C/C++ code. | |
Specify a custom help text file. | Display help file contents at runtime using
| |
| Add folder to search path for MATLAB files. | |
| Automatically convert all
| |
| Specify a secret manifest JSON file to embed the specified secret keys in the deployable archive (since R2024a). | |
| Specify AES encryption key
| If you do not specify any arguments after
For C++ shared libraries, you can specify only the encryption key and provide the decryption key in your C++ application at runtime (since R2023b). |
| Direct | Default behavior is to dispose of any partial output if the command fails to execute successfully. |
| Create a C shared library. | Equivalent to |
| Generate a standalone application. | Equivalent to On Windows, the command prompt opens on execution of the application. The standalone app compiler suppresses the MS-DOS command window by default. To enable it, deselect Do not display the Windows Command Shell (console) for execution in the Additional Runtime Settings area. |
| Pass compile-time options to
| |
| Automatically treat numeric inputs as MATLAB doubles. | Cannot be used in a |
| Clear the compile-time search path of all but a minimal, required set of folders. | Uses the following folders:
|
| Specify name of standalone application executable file. | Adds appropriate extension. |
| Add | Requires |
| Embed resource | Use to specify an application icon. |
Specify run-time options for MATLAB Runtime. | Valid only for standalone applications using MATLAB Compiler.
| |
| Obfuscate folder structures and
file names in the deployable archive ( | |
| Create singleton MATLAB Runtime. | Default for generic COM components. Valid for Microsoft® Excel and Java® packages. |
| Specify the output target phase and type. | Cannot be used in a |
| Register COM component for current user only on development machine. | Valid only for generic COM components and Microsoft Excel add-ins. |
| Generate a deployable archive ( | Equivalent to |
| Verbose; display compilation steps and warning messages. | |
Control warning messages. | Valid arguments are | |
Specify build target and associated options. |
| |
Ignore data files detected by dependency analysis. | For more information, see Dependency Analysis Using MATLAB Compiler. | |
| Override the default license file with the specified file
licensefile . | Can only be used on the system command line. |
| Specify method of including support packages. |
|
Packaging Log and Output Folders
By default, the deployment app places the packaging log and all output files in the target folder location. If you specify a custom location, the app creates any folders that do not exist at compile time.