User`s guide
5 Controlling Code Generation
5-28
Note On the mcc command line, you can access any mlib file by including the
full path to the file. For example:
mcc -m timer /pathname/libtimefun.mlib
Restrictions.
• (UNIX) The first three characters of the filename must be lib.
• (PC and UNIX) You cannot rename the file.
• (PC and UNIX) Both the shared library and the
mlib file must be in the same
directory at compile time.
• (PC and UNIX) At run time, the path to the shared library must be on the
system’s search path. For more information about setting the path on the PC,
see “Shared Libraries” on page 4-22. For UNIX information, see “Locating
Shared Libraries” on page 4-11. You do not need the
mlib file present when
running the executable that links to the shared library.
C++ Libraries
The intent of the C++ library wrapper files is to allow the inclusion of an
arbitrary set of M-files into a library. The header file contains all of the entry
points for all of the compiled M functions.
Note Even if you are not producing a separate library, you must generate a
library wrapper file when including any Compiler-generated code into a larger
application.