MATLAB Compiler Previous page   Next Page

Libraries

C Shared Library

You can use the -l option to create a C shared library from a set of M-files. For example

The -l option is a bundle option that expands into

The -W lib option tells the MATLAB Compiler to generate a function wrapper for a shared library and call it libfile1. The -T link:lib option specifies the target output as a shared library. For overview information on creating shared libraries and deploying them, see Quick Start. For detailed information on creating libraries, see Libraries.

C++ Shared Library

The procedure for creating a C++ shared library from M-files is identical to the procedure for creating a C shared library, except you use the cpplib wrapper. For example


Previous page  Stand-Alone Applications Builder Products Next page

© 1994-2005 The MathWorks, Inc.