User`s guide

4 Stand-Alone Applications
4-14
typically by typing its name at the UNIX prompt. The application should run
and display the message
Hello, World
When you execute the mcc command to link files and libraries, mcc actually
calls the
mbuild script to perform the functions.
Distributing Stand-Alone UNIX Applications
To distribute a stand-alone application, you must create a package containing
these files:
Your application executable.
The contents, if any, of a directory named
bin, created by mbuild in the same
directory as your application executable. Note:
mbuild does not create a bin
directory for every stand-a lone application.
Any custom MEX-files your application uses.
All the MATLAB M ath run-time libraries.
For specific information about packaging these files, see “Distributing
Stand-Alone Applications” in the MATLAB C Math Library User’s Guide.
Note There is no support for the MATLAB C/C++ Graphics Library on the
IBM_RS platform.
Remember to locate the shared libraries along the
LD_LIBRARY_PATH
(SHLIB_PATH on HP) environment variable so that they can be found and
loaded.
Installing C++ and Fortran Support
MATLAB users require access to both the C++ and Fortran run-time shared
libraries. These are usually provided as part of the operating system
installation. For Digital UNIX, however, the C++ shared libraries are part of
the base installatio n package, but the Fortran shared libraries are on a
separate disk called the “Associated Products CD.” MATLAB users running
under Digital UNIX should install both the C++ and Fortran run-time shared
libraries.