| MATLAB Compiler | ![]() |
Using Bundle Files
Bundle files provide a convenient way to group sets of MATLAB Compiler options and recall them as needed. The syntax of the bundle file option is
When used on the mcc command line, the bundle option -B replaces the entire string with the contents of the specified file. The file should contain only mcc command line options and corresponding arguments and/or other filenames. The file may contain other -B options.
A bundle file can include replacement parameters for Compiler options that accept names and version numbers. For example, there is a bundle file for C shared libraries, csharedlib, that consists of
To invoke the Compiler to produce a C shared library using this bundle, you could use
In general, each %n% in the bundle file will be replaced with the corresponding option specified to the bundle file. Use %% to include a % character. It is an error to pass too many or too few options to the bundle file.
You can place options that you always set in an mccstartup file. For more information, see Setting Up Default Options.
This table shows the available bundle files.
| Using Pathnames | Using Wrapper Files | ![]() |
© 1994-2005 The MathWorks, Inc.