User`s guide
Input and Output Files
CSharedLibrary
In this example,
MATLAB C ompiler takes the M-files
foo.m and bar.m as
input and genera
tes a C shared library called
libfoo.
mcc -W lib:libfoo -T link:lib foo.m bar.m
File Description
libfoo.c
The library wrapper C source file containing the
exported functions o f the library representing
theCinterfacetothetwoM-functions(
foo.m
and bar.m) as well as library initialization
code.
libfoo.h
The library wrapper header file. T his file is
included by applications that call the exported
functions of
libfoo.
libfoo_mcc_
component_data.c
C source file containing data needed by the
MCR to initialize and use the library. This data
includes path information, encryption keys,
and other initialization for the MC R.
libfoo.exp
orts
The exports file used by mbuild to link the
library.
libfoo.ctf
The CTF archive. T his file contains a
compressed and encrypted archive of the
M-files that m ake up the library (
foo.m and
bar.m). This file also contains other files called
bythetwomainM-filesaswellasanyother
content and data files needed at run time.
3-7