MATLAB Compiler Previous page   Next Page

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.

Bundle
File Name

Creates
Contents
ccom
COM Object
-W com:<component_name>,<class_name>,<version> -T link:lib
cexcel
Excel COM Object
-W excel:<component_name>,<class_name>,<version> -T link:lib -b
cppcom
COM Object (same as ccom)
-B ccom:<component_name>,<class_name>,<version>
cppexcel
Excel COM Object (same as cexcel)
-B cexcel:<component_name>,<class_name>,
<version>

cpplib
C++ Library
-W cpplib:<shared_library_name> -T link:lib
csharedlib
C Shared Library
-W lib:<shared_library_name> -T link:lib


Previous page  Using Pathnames Using Wrapper Files Next page

© 1994-2005 The MathWorks, Inc.