| MATLAB Compiler | ![]() |
C Shared Library Target
You can use the MATLAB Compiler to build C or C++ shared libraries on both Windows and UNIX. Many of the mcc options that pertain to creating stand-alone applications also pertain to creating C and C++ shared libraries.
C Shared Library Wrapper
The C library wrapper option allows you to create a shared library from an arbitrary set of M-files. The MATLAB Compiler generates a wrapper file, a header file, and an export list. The header file contains all of the entry points for all of the compiled M-functions. The export list contains the set of symbols that are exported from a C shared library.
Note
Even if you are not producing a shared library, you must use -W lib or -W cpplib when including any Compiler-generated code into a larger application. For more information, refer to Mixing M-Files and C or C++.
|
| Introduction | C Shared Library Example | ![]() |
© 1994-2005 The MathWorks, Inc.