User`s guide
A-3
Create a C++ Library. T o create a C+ + library, use
mcc -p -W lib:libfoo -T compile:lib foo.m
Create a C Shared Library. To create a C shared library that performs specialized
calculations that you can call from your own programs, use
mcc -W lib:mylib -L C -t -T link:lib -h Function1 Function2 …
Create MATLAB P-Code. To translate an M-file named mymfile.m into MATLAB
P-code, use
mcc -B pcode mymfile
Note Yo u c an ad d the -g option to any of these for debugging purposes.