| MATLAB Compiler | ![]() |
Structure of Programs That Call Shared Libraries
All programs that call MATLAB Compiler-generated shared libraries have roughly the same structure:
mclInitializeApplication, and test for success. This function sets up the global MCR state and enables the construction of MCR instances.
<libraryname>Initialize, to create the MCR instance required by the library.
<libraryname>Terminate, to destroy the associated MCR.
mclTerminateApplication to free resources associated with the global MCR state.
To see these steps in an actual example, review the main program in this example, triangle.c.
| MATLAB Compiler-Generated Interface Functions | Library Initialization and Termination Functions | ![]() |
© 1994-2005 The MathWorks, Inc.