Table A-1: mcc Quick Reference
Option
|
Description
|
Comment/Options
|
|---|
-a filename
|
Add filename to the CTF archive
|
None
|
-b
|
Generate Excel-compatible formula function
|
Requires MATLAB Builder for Excel
|
-B filename[:arg[,arg]]
|
Replace -B filename on the mcc command line with the contents of filename
|
The file should contain only mcc command line options. These are MathWorks included options files: -B csharedlib:fooC shared library
-B cpplib:fooC++ library
|
-c
|
Generate C wrapper code
|
Equivalent to
-T codegen
|
-d directory
|
Place output in specified directory
|
None
|
-f filename
|
Use the specified options file, filename, when calling mbuild
|
mbuild -setup is recommended.
|
-g
|
Generate debugging information
|
None
|
-G
|
Same as -g
|
None
|
-I directory
|
Add directory to search path for M-files
|
MATLAB path is automatically included when running from MATLAB, but not when running from DOS/UNIX shell.
|
-l
|
Macro to create a function library
|
Equivalent to -W lib -T link:lib
|
-m
|
Macro to generate a C stand-alone application
|
Equivalent to
-W main -T link:exe
|
-M string
|
Pass string to mbuild
|
Use to define compile-time options.
|
-N
|
Clear the path of all but a minimal, required set of directories
|
None
|
-o outputfile
|
Specify name of final executable
|
Adds appropriate extension
|
-P directory
|
Add directory to compilation path in an order-sensitive context
|
Requires -N option
|
-R option
|
Specify run-time options for MCR
|
option =
-nojvm
-nojit
|
-S
|
Create Singleton MCR
|
Requires MATLAB Builder for COM
|
-T target
|
Specify output stage
|
target = codegen
compile:bin
link:bin
where bin =exe
lib
|
-v
|
Verbose; Display compilation steps
|
None
|
-w option
|
Display warning messages
|
option = list
level
level:string
where level =disable
enable
error
|
-W type
|
Control the generation of function wrappers
|
type = main
cpplib:<string>
lib:<string>
none
com:compname,clname,version
|
-Y licensefile
|
Use licensefile when checking out a Compiler license
|
None
|
-z path
|
Specify path for library and include files
|
None
|
-?
|
Display help message
|
None
|
© 1994-2005 The MathWorks, Inc.