MATLAB COMPILER RELEASE NOTES User's Guide Page 142

  • Download
  • Add to my manuals
  • Print
  • Page
    / 264
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 141
5 Controlling Code Generation
5-26
executable is created, it is linked against the shared library. For example on
the PC, th e executable
timer.exe is created and it is linked against
libtimefun.dll.
An advantage of using
mlib files is that the generated code is smaller because
some of the code is now located in the shared library.
Note On the mcc command line, you can access any mlib fil e by incl ud in g the
full path to the file. F or example,
mcc -m timer /pathname/libtimefun.mlib
Restrictions.
(UNIX) The first three characters o f the filename must be lib.
(PC and UNIX) You cannot rename the file.
(PC and UNIX) Both the shared library and t he
mlib filemustbe in the same
directory at compile time.
(PC and UNIX) At run time, the path to the shared library must be on the
system’ssearch path.FormoreinformationaboutsettingthepathonthePC,
see “Shared Libraries” on page 4-22. For UNIX information, see Locating
Shared Libraries” on page 4-12. 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.
Page view 141
1 2 ... 137 138 139 140 141 142 143 144 145 146 147 ... 263 264

Comments to this Manuals

No comments