MATLAB COMPILER RELEASE NOTES User's Guide Page 77

  • Download
  • Add to my manuals
  • Print
  • Page
    / 264
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 76
Building Stand-Alone C/C++ Applications
4-7
Getting Started
Introducing mbuild
The MathWorks utility, mbuild, lets you customize the configuration and build
process. The
mbuild script provides an easy way for you to specify an options
file that lets you:
Set your compiler and linker settings
Cha nge compilers or compiler settings
Switch between C and C++ development
Build your application
The MATLAB Compiler (
mcc) automatically invokes mbuild under certain
conditions. In particular,
mcc -m or mcc -p invokes mbuild to perform
compilation and linking. See the
mcc reference page for complete details on
which Compiler options you should use in order to use the
mbuild script.
If you do not want
mcc to invoke mbuild automatically, you can use the -c
option. For example, mcc -mc filename.
Compiler Options Files
Options files contain the required compiler and linker settings for your
particular C or C++ compiler. The MathWorks provides options files for every
supported C or C++ compiler. The options file for UNIX is
mbuildopts.sh;The
Compiler Options Files on the PC table contains the PC options files.
Much of the information on options files in this chapter is provided for those
users who may need to modify an options file to suit their specific needs. Many
users never have to be concerned with how the options files work.
Note If you are developing C ++ applications, m ake sure yo ur C++ compiler
supports the templates features of the C++ language. If it does not, you may
beunabletousetheMATLABC/C++MathLibrary.
Page view 76
1 2 ... 72 73 74 75 76 77 78 79 80 81 82 ... 263 264

Comments to this Manuals

No comments