User`s guide
Supported Executable Types
5-29
This example uses several functions from the toolbox\matlab\timefun
directory (
weekday, date, tic, calendar, toc) to create a C++ library called
libtimefun. The -W lib:libtimefun -L Cpp options produce the C++ library
files shown in this table.
Note On some platforms, including Microsoft Windows NT, support for C++
shared libraries is limited and the C++ mangled function names must be
exported. Refer to your vendor-supplied documentation for details on creating
C++ shared libraries.
libtimefun.cpp
The C++ wrapper file (libtimefun.cpp) initializes the state of
Compiler-generated functions so that those functions can be called from C++
code not generated by the Compiler. These files are produced from the
command
mcc -W lib:libtimefun -L Cpp weekday date tic calendar toc
or using the cpplib bundle file
mcc -B cpplib:libtimefun weekday date tic calendar toc
COM Components
The COM wrapper file allows you to create COM components from MATLAB
M-files. The Compiler options that generate the COM wrappers are
-W com:<component_name>[,<class_name>[,<major>.<minor>]]
-W comhg:<component_name>[,<class_name>[,<major>.<minor>]]
-W excel:<component_name>[,<class_name>[,<major>.<minor>]]
-W excelhg:<component_name>[,<class_name>[,<major>.<minor>]]
File Description
libtimefun.cpp
C++ wrapper file
libtimefun.hpp
C++ header file