MATLAB Compiler Previous page   Next Page

Compiling a Stand-Alone Application

To create a stand-alone application from the M-file mymfunction, use the command

This creates a stand-alone executable named mymfunction.exe on Windows and mymfunction on UNIX.

Compiling a Shared Library

To create a shared library from the M-file mymfunction, use the command

This creates a shared library named mymfunction.dll on Windows and mymfunction.so on UNIX.

Stand-Alone Application That Calls a Library

To create a stand-alone (driver) application from a user-written source file named mydrivercode that calls the above library mymfunction, use the command

Testing Components on Development Machine

To test components on your development machine, make sure you have your path set properly. The following sections show how to set the path for each supported platform.

Windows

Add the following directory to your system PATH environment variable.

UNIX

Add the following platform-specific directories to your dynamic library path.

Linux.   

Solaris.   

Linux x86-64.   

HP-UX.   

You can then run the compiled applications on your development machine to test them.


Previous page  Quick Start Deploying Components to Other Machines Next page

© 1994-2005 The MathWorks, Inc.