| MATLAB Compiler | ![]() |
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 and a header file. The header file contains all of the entry points for all of the compiled M-functions.
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++.
|
| Calling a Shared Library | C++ Shared Library Example | ![]() |
© 1994-2005 The MathWorks, Inc.