User`s guide

mbuild
Note MBUILD can also create shared libraries from C source code.
If a file with the extension
.exports is passe d to MBUILD, a shared
library is built. The
.exports fi le must be a text file, with each line
containing either an expo rted symbol name, or starting with a
# or *
in the first column ( in which case it is treated as a comment line). If
mult iple
.exports files are specified, all sym bol names in all speci fi ed
.exports files are exported.
Examples To set up or change the default C/C++ compiler for use with MATLAB
Compiler, use
mbuild -setup
To create a shared library named libfoo,use
mcc -W lib:libfoo -T link:lib foo.m
To compile and link an external C program foo.c against lib foo,use
mbuild foo.c -L. -lfoo (on UNIX)
mbuild foo.c libfoo.lib (on Windows)
This assumes both foo. c and the library g enerated above are in the
current w orking directory.
11-16